error LNK2001: unresolved external symbol
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: error LNK2001: unresolved external symbol

Hybrid View

  1. #1
    Join Date
    Jul 2013
    Posts
    9

    Unhappy error LNK2001: unresolved external symbol

    I am getting this error while compiling my c++ project in Visual Studio2005,


    Error 3 error LNK2001: unresolved external symbol "class OdRxModule * __cdecl odrxCreateModuleObject_For_OdRasterProcessingServicesImpl(class OdString const &)" (?odrxCreateModuleObject_For_OdRasterProcessingServicesImpl@@YAPAVOdRxModule@@ABVOdString@@@Z) DwgDirect.obj
    Error 4 error LNK2001: unresolved external symbol "class OdRxModule * __cdecl odrxCreateModuleObject_For_BitmapModule(class OdString const &)" (?odrxCreateModuleObject_For_BitmapModule@@YAPAVOdRxModule@@ABVOdString@@@Z) DwgDirect.obj
    Error 5 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Root.lib
    Error 6 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_DbRoot.lib
    Error 7 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Ge.lib
    Error 8 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Ge.lib
    Error 9 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Root.lib
    Error 10 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_DbRoot.lib
    Error 11 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_DbRoot.lib
    Error 12 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_DbRoot.lib
    Error 13 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_DbRoot.lib
    Error 14 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 15 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 16 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 17 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_DbRoot.lib
    Error 18 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 19 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 20 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 21 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 22 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 23 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 24 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 25 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 26 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 27 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 28 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 29 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 30 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 31 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 32 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 33 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 34 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 35 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 36 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 37 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 38 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 39 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 40 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 41 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 42 error LNK2019: unresolved external symbol __imp___invalid_parameter_noinfo referenced in function "public: class std::list<class OdGsLightNode *,class std::allocator<class OdGsLightNode *> >::_Const_iterator<1> & __thiscall std::list<class OdGsLightNode *,class std::allocator<class OdGsLightNode *> >::_Const_iterator<1>:perator++(void)" (??E?$_Const_iterator@$00@?$list@PAVOdGsLightNode@@V?$allocator@PAVOdGsLightNode@@@std@@@std@@QAEAAV012@XZ) DD_Gs.lib
    Error 43 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 44 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 45 error LNK2001: unresolved external symbol __imp___invalid_parameter_noinfo DD_Db.lib
    Error 46 fatal error LNK1120: 3 unresolved externals c:\KCServices\ddCreate\ddCreate.exe 1



    eventhough i linked all the .lib files under the path
    1 . Project->Properties->Configuration Properties->Linker->Input->Additional Dependencies->
    2. Toolos->options->VC++ Directories


    Since i am new to visual studio ,i couldn't able to wave this error .
    Quick response would be very appreciated

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,352

    Re: error LNK2001: unresolved external symbol

    Are you sure you do not mix modules for DEBUG and RELEASE?
    Victor Nijegorodov

  3. #3
    Join Date
    Jul 2013
    Posts
    9

    Re: error LNK2001: unresolved external symbol

    Quote Originally Posted by VictorN View Post
    Are you sure you do not mix modules for DEBUG and RELEASE?


    can you please let me know where can i mention these modules differenciasion .....

  4. #4
    Join Date
    Jul 2013
    Location
    USA
    Posts
    30

    Re: error LNK2001: unresolved external symbol

    Unfortunately many things can cause LNK2001 errors. It could be from not including the proper header file or from linking to a 32bit lib in a 64bit application and visa versa or it could be linking to an older C compiled lib in a C++ application. The latter was a problem I had a few weeks ago. Turning off precompiled headers seemed to fix the problem.

  5. #5
    Join Date
    Jul 2013
    Posts
    9

    Arrow Re: error LNK2001: unresolved external symbol

    Quote Originally Posted by RobNHood View Post
    Unfortunately many things can cause LNK2001 errors. It could be from not including the proper header file or from linking to a 32bit lib in a 64bit application and visa versa or it could be linking to an older C compiled lib in a C++ application. The latter was a problem I had a few weeks ago. Turning off precompiled headers seemed to fix the problem.

    Thanks Bro ,
    For sharing the problem ,but that is not the case here it seems bcz initially Precompiled headers were turnedoff ,I am trying to Compile it in the Debug mode and mad necessary properties settings as Debug still facing issue ,

    Can any one tell me where i am doing wrong .

  6. #6
    Join Date
    Jul 2013
    Location
    USA
    Posts
    30

    Re: error LNK2001: unresolved external symbol

    Do you get the same linker error when compiling in release mode or is it just in debug?

  7. #7
    Join Date
    Jul 2013
    Posts
    9

    Re: error LNK2001: unresolved external symbol

    it is in debug mode ,In release mode it working as well

  8. #8
    Join Date
    Jul 2013
    Location
    USA
    Posts
    30

    Re: error LNK2001: unresolved external symbol

    If it is linking fine in release mode but not in debug and you have the same settings in your linker configuration then it sounds like Victor is right. The Lib might have been built in release mode you will need a module that has been built in debug mode. Some libs work fine in either mode but some don't. If you have the source code for that lib you can try rebuilding it yourself in debug mode or just include the source files in your project. If that does not sound like an option you may just be stuck compiling and linking in release.

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center