error LNK2001: unresolved external symbol public: virtual long __thiscall CBCGPWnd BCG

来源:互联网 发布:非凡软件站是啥 编辑:程序博客网 时间:2024/05/16 13:47

Q:  When I'm trying to link my program with BCGControlBar library, I get lot of linker errors like 'error LNK2001: unresolved external symbol "public: virtual long __thiscall CBCGPWnd::get_accName'. How can I resolve this problem?
A: If you get the following error messages:

  • error LNK2001: unresolved external symbol "public: virtual long __thiscall CBCGPWnd::get_accName
     
  • error LNK2001: unresolved external symbol "public: virtual long __thiscall CBCGPWnd::get_accValue
     
  • error LNK2001: unresolved external symbol "public: virtual long __thiscall CBCGPWnd::get_accDescription
     
  • error LNK2001: unresolved external symbol "public: virtual long __thiscall CBCGPWnd::get_accHelp
     
  • error LNK2001: unresolved external symbol "public: virtual long __thiscall CBCGPWnd::get_accHelpTopic
     
  • error LNK2001: unresolved external symbol "public: virtual long __thiscall CBCGPWnd::get_accKeyboardShortcut
     
  • error LNK2001: unresolved external symbol "public: virtual long __thiscall CBCGPWnd::get_accDefaultAction
     
  • error LNK2001: unresolved external symbol "public: virtual long __thiscall CBCGPWnd::put_accName
     
  • error LNK2001: unresolved external symbol "public: virtual long __thiscall CBCGPWnd::put_accValue
     

please check the option "Treat wchar_t as built in type" in C/C++ | Language settings for the project and change it to the opposite. The point is that the project should be compiled with the same setting as the library.

原创粉丝点击