Author Topic: Compiling wxWidgets under C::B results in lots of link errors, why?  (Read 6104 times)

Offline Conan Kudo

  • Multiple posting newcomer
  • *
  • Posts: 111
    • Enano CMS Project
I attempted to compile wxWidgets 2.6.3pl2 under C::B by importing the visual c++ workspaces and selecting Win32 DLL Unicode Release...
After adding the wx directories, I started to compile the workspace... The following errors occurred shortly after:
Quote from: Code::Blocks build error list
sound.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
taskbar.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
wizard.obj:: error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ) referenced in function "public: void * __thiscall wxString::`vector deleting destructor'(unsigned int)" (??_EwxString@@QAEPAXI@Z)
datectrl.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
dummy.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
joystick.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
propdlg.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
sashwin.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
splash.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
tipdlg.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
gridctrl.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
gridsel.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
helpext.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
laywin.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
taskbarcmn.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
calctrl.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
datectlg.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
grid.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1wxString@@QAE@XZ)
taskbarcmn.obj:: error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl wxAppConsole::CheckBuildOptions(char const *,char const *)" (__imp_?CheckBuildOptions@wxAppConsole@@SA_NPBD0@Z) referenced in function "bool __cdecl wxCheckBuildOptions(void)" (?wxCheckBuildOptions@@YA_NXZ)
taskbarcmn.obj:: error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxEvtHandler::wxEvtHandler(void)" (__imp_??0wxEvtHandler@@QAE@XZ) referenced in function "public: __thiscall wxTaskBarIconBase::wxTaskBarIconBase(void)" (??0wxTaskBarIconBase@@QAE@XZ)
grid.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxEvtHandler::wxEvtHandler(void)" (__imp_??0wxEvtHandler@@QAE@XZ)
taskbar.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxEvtHandler::wxEvtHandler(void)" (__imp_??0wxEvtHandler@@QAE@XZ)
taskbarcmn.obj:: error LNK2001: unresolved external symbol "public: virtual class wxClassInfo * __thiscall wxEvtHandler::GetClassInfo(void)const " (?GetClassInfo@wxEvtHandler@@UBEPAVwxClassInfo@@XZ)
taskbar.obj:: error LNK2001: unresolved external symbol "public: virtual class wxClassInfo * __thiscall wxEvtHandler::GetClassInfo(void)const " (?GetClassInfo@wxEvtHandler@@UBEPAVwxClassInfo@@XZ)
taskbar.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
wizard.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
datectrl.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
joystick.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
sound.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
propdlg.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
sashwin.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
splash.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
tipdlg.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
gridctrl.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
gridsel.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
helpext.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
laywin.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
taskbarcmn.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
calctrl.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
datectlg.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
grid.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" (?ReservedObjectFunc1@wxObject@@UAEXXZ)
taskbar.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" (?ReservedObjectFunc2@wxObject@@UAEXXZ)
wizard.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" (?ReservedObjectFunc2@wxObject@@UAEXXZ)
datectrl.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" (?ReservedObjectFunc2@wxObject@@UAEXXZ)
joystick.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" (?ReservedObjectFunc2@wxObject@@UAEXXZ)
sound.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" (?ReservedObjectFunc2@wxObject@@UAEXXZ)
propdlg.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" (?ReservedObjectFunc2@wxObject@@UAEXXZ)
sashwin.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" (?ReservedObjectFunc2@wxObject@@UAEXXZ)
splash.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" (?ReservedObjectFunc2@wxObject@@UAEXXZ)
tipdlg.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" (?ReservedObjectFunc2@wxObject@@UAEXXZ)
I am using the VC2003 toolkit with C::B...
Any ideas?
« Last Edit: May 08, 2006, 12:24:29 am by Pharaoh Atem »

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Use the makefile.

Quote from: INSTALL-MSW.txt
Using makefiles:

1. Change directory to build\msw. Type:

  'nmake -f makefile.vc'

   to make the wxWidgets core library as release DLL.
   See "Configuring the build" for instruction how to build debug or static
   libraries.

2. Change directory to samples and type 'nmake -f makefile.vc'
   to make all the samples. You can also make them individually.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)