Author Topic: Compiling wxWidgets under C::B results in lots of link errors, why?  (Read 4476 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)" ([email protected]@[email protected])
taskbar.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
wizard.obj:: error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected]) referenced in function "public: void * __thiscall wxString::`vector deleting destructor'(unsigned int)" ([email protected]@[email protected])
datectrl.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
dummy.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
joystick.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
propdlg.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
sashwin.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
splash.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
tipdlg.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
gridctrl.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
gridsel.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
helpext.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
laywin.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
taskbarcmn.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
calctrl.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
datectlg.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" ([email protected]@[email protected])
grid.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::~wxString(void)" (__imp_??1[email protected]@[email protected])
taskbarcmn.obj:: error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl wxAppConsole::CheckBuildOptions(char const *,char const *)" ([email protected]@@[email protected]) referenced in function "bool __cdecl wxCheckBuildOptions(void)" ([email protected]@YA_NXZ)
taskbarcmn.obj:: error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxEvtHandler::wxEvtHandler(void)" ([email protected]@[email protected]) referenced in function "public: __thiscall wxTaskBarIconBase::wxTaskBarIconBase(void)" ([email protected]@[email protected])
grid.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxEvtHandler::wxEvtHandler(void)" ([email protected]@[email protected])
taskbar.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxEvtHandler::wxEvtHandler(void)" ([email protected]@[email protected])
taskbarcmn.obj:: error LNK2001: unresolved external symbol "public: virtual class wxClassInfo * __thiscall wxEvtHandler::GetClassInfo(void)const " ([email protected]@@[email protected]@XZ)
taskbar.obj:: error LNK2001: unresolved external symbol "public: virtual class wxClassInfo * __thiscall wxEvtHandler::GetClassInfo(void)const " ([email protected]@@[email protected]@XZ)
taskbar.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
wizard.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
datectrl.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
joystick.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
sound.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
propdlg.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
sashwin.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
splash.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
tipdlg.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
gridctrl.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
gridsel.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
helpext.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
laywin.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
taskbarcmn.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
calctrl.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
datectlg.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
grid.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc1(void)" ([email protected]@@UAEXXZ)
taskbar.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" ([email protected]@@UAEXXZ)
wizard.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" ([email protected]@@UAEXXZ)
datectrl.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" ([email protected]@@UAEXXZ)
joystick.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" ([email protected]@@UAEXXZ)
sound.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" ([email protected]@@UAEXXZ)
propdlg.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" ([email protected]@@UAEXXZ)
sashwin.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" ([email protected]@@UAEXXZ)
splash.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" ([email protected]@@UAEXXZ)
tipdlg.obj:: error LNK2001: unresolved external symbol "public: virtual void __thiscall wxObject::ReservedObjectFunc2(void)" ([email protected]@@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: 935
    • Twilight Dragon Media
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.
http://tdm-gcc.tdragon.net/ - TDM-GCC compiler suite for Windows (GCC 5.1.0 2015-06-28, 32/64-bit, no extra DLLs)