Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    6

    Question error LNK2001: Please Help

    hi, i get this errors when i was building a application which uses http connection and i got these error messages--
    "error LNK2001: unresolved external symbol".
    Please help me out...


    \Symbian\7.0s\SERIES~2\SERIES~1\TESTIF~1\group>abld build vc6

    Creating library \Symbian\7.0s\Series60_v20\EPOC32\BUILD\SYMBIAN\7.0S\SERIES6
    0_V20\SERIES60EX\TESTIFWORK\GROUP\TESTIFWORK\WINS\UDEB\TESTIFWORK.lib and object
    \Symbian\7.0s\Series60_v20\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V20\SERIES60EX\TE
    STIFWORK\GROUP\TESTIFWORK\WINS\UDEB\TESTIFWORK.exp
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    void __thiscall RHTTPSession::Close(void)" (?Close@RHTTPSession@@QAEXXZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    void __thiscall RHTTPSession::OpenL(void)" (?OpenL@RHTTPSession@@QAEXXZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    void __thiscall RHTTPHeaders::SetFieldL(class RStringF,class THTTPHdrVal)" (?Set
    FieldL@RHTTPHeaders@@QAEXVRStringF@@VTHTTPHdrVal@@@Z)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    static struct TStringTable const & __cdecl RHTTPSession::GetTable(void)" (?GetTa
    ble@RHTTPSession@@SAABUTStringTable@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    __thiscall THTTPHdrVal::THTTPHdrVal(class RStringF)" (??0THTTPHdrVal@@QAE@VRStri
    ngF@@@Z)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class RStringPool __thiscall RHTTPSession::StringPool(void)const " (?StringPool@
    RHTTPSession@@QBE?AVRStringPool@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    void __thiscall RHTTPTransaction::SubmitL(class THTTPFilterHandle)" (?SubmitL@RH
    TTPTransaction@@QAEXVTHTTPFilterHandle@@@Z)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class RHTTPHeaders __thiscall RHTTPMessage::GetHeaderCollection(void)" (?GetHead
    erCollection@RHTTPMessage@@QAE?AVRHTTPHeaders@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class RHTTPRequest __thiscall RHTTPTransaction::Request(void)const " (?Request@R
    HTTPTransaction@@QBE?AVRHTTPRequest@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class RHTTPTransaction __thiscall RHTTPSession::OpenTransactionL(class TUriC8 co
    nst &,class MHTTPTransactionCallback &,class RStringF)" (?OpenTransactionL@RHTTP
    Session@@QAE?AVRHTTPTransaction@@ABVTUriC8@@AAVMHTTPTransactionCallback@@VRStrin
    gF@@@Z)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    int __thiscall TUriParser8::Parse(class TDesC8 const &)" (?Parse@TUriParser8@@QA
    EHABVTDesC8@@@Z)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    __thiscall TUriParser8::TUriParser8(void)" (??0TUriParser8@@QAE@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    void __thiscall RHTTPMessage::SetBody(class MHTTPDataSupplier &)" (?SetBody@RHTT
    PMessage@@QAEXAAVMHTTPDataSupplier@@@Z)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    void __thiscall RHTTPTransaction::Close(void)" (?Close@RHTTPTransaction@@QAEXXZ)

    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class MHTTPDataSupplier * __thiscall RHTTPMessage::Body(void)const " (?Body@RHTT
    PMessage@@QBEPAVMHTTPDataSupplier@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class RStringF __thiscall RHTTPResponse::StatusText(void)const " (?StatusText@RH
    TTPResponse@@QBE?AVRStringF@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    int __thiscall RHTTPResponse::StatusCode(void)const " (?StatusCode@RHTTPResponse
    @@QBEHXZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class RHTTPResponse __thiscall RHTTPTransaction::Response(void)const " (?Respons
    e@RHTTPTransaction@@QBE?AVRHTTPResponse@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class TDesC8 const & __thiscall TUriC8::UriDes(void)const " (?Umake: *** [TARGET
    TESTIFWORK] Error 2
    riDes@TUriC8@@QBEABVTDesC8@@XZ)
    \Symbian\7.0s\Series60_v20\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V20\SERIES60EX\TES
    TIFWORK\GROUP\TESTIFWORK\WINS\UDEB\TESTIFWORK.APP : fatal error LNK1120: 19 unre
    solved externals
    NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
    Stop.
    make -r -f "\Symbian\7.0s\Series60_v20\EPOC32\BUILD\SYMBIAN\7.0S\SERIES~2\SER
    IES~1\TESTIF~1\GROUP\VC6.make" TARGET CFG=UREL VERBOSE=-s
    nmake -nologo -x - -s -f "\Symbian\7.0s\Series60_v20\EPOC32\BUILD\SYMBIAN\7.0S\
    SERIES60_V20\SERIES60EX\TESTIFWORK\GROUP\TESTIFWORK\WINS\TESTIFWORK.WINS" UREL
    Testifwork.uid.cpp
    Creating library \Symbian\7.0s\Series60_v20\EPOC32\BUILD\SYMBIAN\7.0S\SERIES6
    0_V20\SERIES60EX\TESTIFWORK\GROUP\TESTIFWORK\WINS\UREL\TESTIFWORK.lib and object
    \Symbian\7.0s\Series60_v20\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V20\SERIES60EX\TE
    STIFWORK\GROUP\TESTIFWORK\WINS\UREL\TESTIFWORK.exp
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    void __thiscall RHTTPSession::Close(void)" (?Close@RHTTPSession@@QAEXXZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    void __thiscall RHTTPSession::OpenL(void)" (?OpenL@RHTTPSession@@QAEXXZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    void __thiscall RHTTPHeaders::SetFieldL(class RStringF,class THTTPHdrVal)" (?Set
    FieldL@RHTTPHeaders@@QAEXVRStringF@@VTHTTPHdrVal@@@Z)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    static struct TStringTable const & __cdecl RHTTPSession::GetTable(void)" (?GetTa
    ble@RHTTPSession@@SAABUTStringTable@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    __thiscall THTTPHdrVal::THTTPHdrVal(class RStringF)" (??0THTTPHdrVal@@QAE@VRStri
    ngF@@@Z)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class RStringPool __thiscall RHTTPSession::StringPool(void)const " (?StringPool@
    RHTTPSession@@QBE?AVRStringPool@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    void __thiscall RHTTPTransaction::SubmitL(class THTTPFilterHandle)" (?SubmitL@RH
    TTPTransaction@@QAEXVTHTTPFilterHandle@@@Z)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class RHTTPHeaders __thiscall RHTTPMessage::GetHeaderCollection(void)" (?GetHead
    erCollection@RHTTPMessage@@QAE?AVRHTTPHeaders@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class RHTTPRequest __thiscall RHTTPTransaction::Request(void)const " (?Request@R
    HTTPTransaction@@QBE?AVRHTTPRequest@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class RHTTPTransaction __thiscall RHTTPSession::OpenTransactionL(class TUriC8 co
    nst &,class MHTTPTransactionCallback &,class RStringF)" (?OpenTransactionL@RHTTP
    Session@@QAE?AVRHTTPTransaction@@ABVTUriC8@@AAVMHTTPTransactionCallback@@VRStrin
    gF@@@Z)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    int __thiscall TUriParser8::Parse(class TDesC8 const &)" (?Parse@TUriParser8@@QA
    EHABVTDesC8@@@Z)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    __thiscall TUriParser8::TUriParser8(void)" (??0TUriParser8@@QAE@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    void __thiscall RHTTPMessage::SetBody(class MHTTPDataSupplier &)" (?SetBody@RHTT
    PMessage@@QAEXAAVMHTTPDataSupplier@@@Z)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    void __thiscall RHTTPTransaction::Close(void)" (?Close@RHTTPTransaction@@QAEXXZ)

    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class RStringF __thiscall RHTTPResponse::StatusText(void)const " (?StatusText@RH
    TTPResponse@@QBE?AVRStringF@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    int __thiscall RHTTPResponse::StatusCode(void)const " (?StatusCode@RHTTPResponse
    @@QBEHXZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class MHTTPDataSupplier * __thiscall RHTTPMessage::Body(void)const " (?Body@RHTT
    PMessage@@QBEPAVMHTTPDataSupplier@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class RHTTPResponse __thiscall RHTTPTransaction::Response(void)const " (?Respons
    e@RHTTPTransaction@@QBE?AVRHTTPResponse@@XZ)
    TESTIFWORKCLIENTENGINE.obj : error LNK2001: unresolved external symbol "public:
    class TDesC8 const & __thiscall TUriC8::UriDes(void)const " (?Umake: *** [TARGET
    TESTIFWORK] Error 2
    riDes@TUriC8@@QBEABVTDesC8@@XZ)
    \Symbian\7.0s\Series60_v20\EPOC32\BUILD\SYMBIAN\7.0S\SERIES60_V20\SERIES60EX\TES
    TIFWORK\GROUP\TESTIFWORK\WINS\UREL\TESTIFWORK.APP : fatal error LNK1120: 19 unre
    solved externals
    NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
    Stop.
    make -r -f "\Symbian\7.0s\Series60_v20\EPOC32\BUILD\SYMBIAN\7.0S\SERIES~2\SER
    IES~1\TESTIF~1\GROUP\VC6.make" FINAL CFG=UDEB VERBOSE=-s
    make -r -f "\Symbian\7.0s\Series60_v20\EPOC32\BUILD\SYMBIAN\7.0S\SERIES~2\SER
    IES~1\TESTIF~1\GROUP\VC6.make" FINAL CFG=UREL VERBOSE=-s

  2. #2
    Regular Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, Great Britain
    Posts
    98

    Re: error LNK2001: Please Help

    Do you have all the required libraries in your project? Normally this kind of message is because you use a function but have not included the library.

  3. #3
    Registered User
    Join Date
    Jan 2006
    Location
    Delhi
    Posts
    112

    Re: error LNK2001: Please Help

    add the following files in ur mmp

    http.lib

    i think this will solve ur problem

    rgds
    yaju

  4. #4
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    79

    Re: error LNK2001: Please Help

    also add

    InetProtUtil.lib

    library to your mmp project file

  5. #5
    Registered User
    Join Date
    Mar 2006
    Posts
    6

    Thumbs up Re: error LNK2001: Please Help

    hi yaju. thanx 4 ur reply.. it worked nicely with adding the http.lib.....

    the new problem that I face is I am not able to run the program through emulator, its wanting some APN that it can not getting...

    another thing is that can u please help me in knowing the architecture behind a http connection? see I'm new to this technology and knows something next to nothing!!! please help me out !!!!!!

  6. #6
    Registered User
    Join Date
    Jan 2006
    Location
    Delhi
    Posts
    112

    Re: error LNK2001: Please Help

    even i am new to symbian so i can not help u much on that....... but as far as i know when we test such kind of system we have the server for our local machine and in the emulator setting we set the ip address for emulator. and using that we test the client and server for any kind of request .....

    i dont know how much this info will be help ful for you.

    rgds
    yaju

  7. #7
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: error LNK2001: Please Help

    make the sis file and test on target instead.

    Regards,
    Mateen maldar

  8. #8
    Registered User
    Join Date
    Mar 2006
    Posts
    6

    Thumbs up Re: error LNK2001: Please Help

    thank u mateen, it worked on the phone. it was nice to see it working..


    and yaju, thank u too 4 ur response.. but can u tell me in further details on

    how to set the settings 4 emulator??

    thanx in advance... :-) ....


    bye..
    sk

  9. #9
    Registered User
    Join Date
    Jan 2006
    Location
    Delhi
    Posts
    112

    Re: error LNK2001: Please Help

    open the emulator->on the TOOL tab choose->preference->choose Ethernet Setting Tab-> choose the option of "use the following IP address" choose the IP address which is free in ur LAN (you can do it by pinging, u can use ipconfig/all for getting all other parameter on the comman prompt) you can also fill the DNS server addresses from the above command.

    the only thing is that ip address of the emulator should be unique on lan....

    i hope this is helpful and might be too elabloraitve as i am also new to telecomn domain so i did not knew on the first hand......


    rgds
    yaju

  10. #10
    Registered User
    Join Date
    Mar 2006
    Posts
    6

    Re: error LNK2001: Please Help

    thanx yaju, it is working with Series 60 3'rd edition, but I failed to configure the Series 60 2'nd edition one... any way, thank u 4 ur reply and sorry for my delay in thankin u....


    sk

Posting Permissions

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