Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    17

    Question help! where wrong?

    我在程序中加入如下代码:
    if I add the follow code in my program:
    private: //Data
    RSocket iSocket;
    RSocketServ iSocketServer;
    TInetAddr iAddress;
    编译会出现错误:
    when compile ,wrong message is :

    Creating library \Symbian\8.0a\S60_2nd_FP2_SC\EPOC32\BUILD\WORK\SOCKTEST\GROUP\SOCKTEST\WINS\UDEB\SOCKTEST.lib and object \Symbian\8.0a\S60_2nd_FP2_SC\EPOC32\BUILD\WORK\SOCKTEST\GROUP\SOCKTEST\WINS\UDEB\SOCKTEST.exp
    SOCKTESTDOCUMENT.obj : error LNK2001: unresolved external symbol "public: __thiscall TInetAddr::TInetAddr(void)" (??0TInetAddr@@QAE@XZ)
    SOCKTESTDOCUMENT.obj : error LNK2001: unresolved external symbol "public: __thiscall RSocketServ::RSocketServ(void)" (??0RSocketServ@@QAE@XZ)
    SOCKTESTDOCUMENT.obj : error LNK2001: unresolved external symbol "public: __thiscall RSocket::RSocket(void)" (??0RSocket@@QAE@XZ)
    \Symbian\8.0a\S60_2nd_FP2_SC\EPOC32\BUILD\WORK\SOCKTEST\GROUP\SOCKTEST\WINS\UDEB\SOCKTEST.APP : fatal error LNK1120: 3 unresolved externals
    NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
    Stop.

    if I delete the code :
    RSocket iSocket;
    RSocketServ iSocketServer;
    TInetAddr iAddress;
    there will be no error!
    why? help?

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,185

    Re: help! where wrong?

    try adding esock.lib into your mmp file, then after re-building the work space, you should be able to compile the project without these errors.

    yucca

  3. #3
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: help! where wrong?

    hi,

    you add esock.lib and insock.lib and euser.lib files in mmp file.

    esock.lib is for RSocketServ,insock.lib is for TInetAddr and euser.lib for RSocket.

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    17

    Re: help! where wrong?

    symbianyucca and eswar_illuri,
    thank you very much!
    the problem is resolved!
    thanks !!

Similar Threads

  1. Replies: 0
    Last Post: 2005-02-16, 15:20
  2. whats wrong with this code?
    By Rx-lee in forum Symbian
    Replies: 4
    Last Post: 2004-03-25, 11:50
  3. wrong name
    By bwtoh in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-08-15, 13:22
  4. get of IMEI is wrong
    By lightman1 in forum Symbian
    Replies: 4
    Last Post: 2003-03-27, 08:23
  5. something wrong in the "GUIENGINE" .....
    By tntfighter-2002 in forum Symbian
    Replies: 2
    Last Post: 2002-09-30, 01:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×