×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Aug 2005
    Location
    Helsinki,Finland
    Posts
    5

    Visual C++: Link error

    Hello!
    I've tried to deal with this problem, but it seems beyond me: If it has already been posted somewhere, could i get a link as i did a search both on google and here and didn't get much relevance:


    Code:
    VIEW.obj : error LNK2001: unresolved external symbol "public: void __thiscall TFontStyle::SetStrokeWeight(enum TFontStrokeWeight)" (?SetStrokeWeight@TFontStyle@@QAEXW4TFontStrokeWeight@@@Z)
    VIEW.obj : error LNK2001: unresolved external symbol "public: __thiscall TFontSpec::TFontSpec(class TDesC16 const &,int)" (??0TFontSpec@@QAE@ABVTDesC16@@H@Z)
    VIEW.obj : error LNK2001: unresolved external symbol "public: void __thiscall RWindow::EndRedraw(void)" (?EndRedraw@RWindow@@QAEXXZ)
    VIEW.obj : error LNK2001: unresolved external symbol "public: void __thiscall RWindow::BeginRedraw(class TRect const &)" (?BeginRedraw@RWindow@@QAEXABVTRect@@@Z)
    VIEW.obj : error LNK2001: unresolved external symbol "public: void __thiscall RWindow::Invalidate(class TRect const &)" (?Invalidate@RWindow@@QAEXABVTRect@@@Z)
    \Symbian\7.0s\Series60_v20\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V20\SERIES60EX\BATTLESHIPS\GROUP\BATTLESHIPS\WINS\UDEB\BATTLESHIPS.APP : fatal error LNK1120: 5 unresolved externals
    NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
    Stop.
    Basically from VC's help, it narrows the problem down to 2 reasons: a typing mistake (where symbol doesn't exist) OR code refering 2 wrong thing (mixed versions of libraries).

    Any help is appreciated

  2. #2
    Regular Contributor
    Join Date
    Oct 2005
    Location
    London, UK
    Posts
    235

    Re: Visual C++: Link error

    Have you linked against gdi.lib and ws32.lib?

    ViruDoshi
    ~ No Style Without Substance ~

  3. #3
    Registered User
    Join Date
    Jan 2005
    Location
    Helsinki, Finland
    Posts
    257

    Re: Visual C++: Link error

    You have to link correct librarys in your .mmp file. Then give commands "abld makefile vc6". For

    RWindow classe:

    #include w32std.h

    LIBRARY ws32.lib // in .mmp file

    Check SDK help which library is required for a specific class!
    Do it now! Today will be yesterday tomorrow - MadSum

  4. #4
    Registered User
    Join Date
    Aug 2005
    Location
    Helsinki,Finland
    Posts
    5

    Re: Visual C++: Link error

    Thanxs!
    It turns out i was missing those library files as u guys indicated....

    Cheerz

  5. #5
    Registered User
    Join Date
    Feb 2006
    Posts
    35

    Re: Visual C++: Link error

    Hi,


    Any one Can tell me how to solve this problem?

    TFileName fileName;
    fileName.Append(_L("c:\\"));

    TBuf <12> fin;
    fin.Copy((*member->Name()));

    TChar chr=fin[0];

    fileName.Append(chr);

    member is CZipfile type and member->Name gives name of the member of zip file

    i have following error::
    DIALOGAPPUI.obj : error LNK2001: unresolved external symbol "public: unsigned short const & __thiscall TDesC16::AtC(int)const " (?AtC@TDesC16@@QBEABGH@Z)



    When i remove * against member->Name()

    it says cant covert convert from 'const class TBuf<256> *' to 'const class TDesC8'

    plz ..........help me ??
    what i am doing wrong?

    Thanks in advance
    Last edited by pinki121; 2007-08-11 at 19:01.

  6. #6
    Regular Contributor
    Join Date
    Aug 2005
    Location
    Delhi
    Posts
    98

    Smile Re: Visual C++: Link error

    i think u r missing library corresponding to TDesc ...as far as the conversion between strings is concerned u can take the help of following link

    http://descriptors.blogspot.com/

    help...if does not help....revert back...

    regards
    kapil kaushik

  7. #7
    Registered User
    Join Date
    Jan 2005
    Location
    Helsinki, Finland
    Posts
    257

    Re: Visual C++: Link error

    It's a linking error. What S60 SDK r u using? I did not find class CZipfile in SDK 2.0 and 2.1. But I found it in SDK 3.0. But there is no method defined CZipfile::Name(). I am suspecting, it might be implemented in sdk 2.2 and they modify CZipfile class in sdk 3.0. I don't have sdk 2.2 installed. So can't really cheak the real problem. But at least you may link the ezip.lib and check what is going on.
    Do it now! Today will be yesterday tomorrow - MadSum

Similar Threads

  1. [newbie here] Link error
    By xitpu in forum Symbian
    Replies: 3
    Last Post: 2007-01-24, 16:53
  2. help !! about SIP errors
    By wgarnett in forum Symbian
    Replies: 3
    Last Post: 2006-05-17, 05:30
  3. S80 Platform SDK and Visual Studio .NET Linking Error
    By jayantjain in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2005-10-07, 22:14
  4. Cannot compile SDK's examples for 7650 platform...
    By midletsoft in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2003-08-12, 19:11

Posting Permissions

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