Hi mvanlint ,
did you solved the problem ?
I'm experiencing the same issue. I developed an application on OpenSUSE 10.3 with Code::Blocks 8.02 an wxFormBuilder and every thing works fine, but, suddenly, I have to comply for Windows too.
I created a new target (DebugMSW) in order to change settings without affecting the DebugGTK and ReleaseGTK targets. I tried in any way to configure Code::Blocks to have it to copile but with no success.
I'm working with wxWidgets-2.8.8 (compiled from source in debug and release mode too), Code::Blocks 8.02 and VS2005 compiler.
Now I created a sample project on Windows from scratch: that compiles but linking fails missing some dependencies:
That's the output:
prova_wxcbApp.obj||error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxApp::Initialize(int &,wchar_t * *)" (?Initialize@wxApp@@UAE_NAAHPAPA_W@Z)|
prova_wxcbApp.obj||error LNK2001: unresolved external symbol "public: virtual void __thiscall wxAppConsole::OnAssertFailure(wchar_t const *,int,wchar_t const *,wchar_t const *,wchar_t const *)" (?OnAssertFailure@wxAppConsole@@UAEXPB_WH000@Z)|
prova_wxcbApp.obj||error LNK2001: unresolved external symbol "public: virtual void __thiscall wxAppConsole::OnAssert(wchar_t const *,int,wchar_t const *,wchar_t const *)" (?OnAssert@wxAppConsole@@UAEXPB_WH00@Z)|
prova_wxcbApp.obj||error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::wxString(wchar_t const *)" (__imp_??0wxString@@QAE@PB_W@Z) referenced in function "public: virtual bool __thiscall prova_wxcbApp::OnInit(void)" (?OnInit@prova_wxcbApp@@UAE_NXZ)|
prova_wxcbMain.obj||error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::wxString(wchar_t const *)" (__imp_??0wxString@@QAE@PB_W@Z)|
GUIFrame.obj||error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::wxString(wchar_t const *)" (__imp_??0wxString@@QAE@PB_W@Z)|
prova_wxcbMain.obj||error LNK2019: unresolved external symbol "__declspec(dllimport) public: class wxString & __thiscall wxString::operator<<(wchar_t const *)" (__imp_??6wxString@@QAEAAV0@PB_W@Z) referenced in function "class wxString __cdecl wxbuildinfo(enum wxbuildinfoformat)" (?wxbuildinfo@@YA?AVwxString@@W4wxbuildinfoformat@@@Z)|
GUIFrame.obj||error LNK2001: unresolved external symbol "__declspec(dllimport) wchar_t const * const wxStatusLineNameStr" (__imp_?wxStatusLineNameStr@@3QB_WB)|
GUIFrame.obj||error LNK2019: unresolved external symbol "__declspec(dllimport) class wxString __cdecl operator+(class wxString const &,wchar_t const *)" (__imp_??H@YA?AVwxString@@ABV0@PB_W@Z) referenced in function "public: __thiscall GUIFrame::GUIFrame(class wxWindow *,int,class wxString,class wxPoint,class wxSize,int)" (??0GUIFrame@@QAE@PAVwxWindow@@HVwxString@@VwxPoint@@VwxSize@@H@Z)|
GUIFrame.obj||error LNK2019: unresolved external symbol "__declspec(dllimport) class wxString __cdecl operator+(class wxString const &,wchar_t)" (__imp_??H@YA?AVwxString@@ABV0@_W@Z) referenced in function "public: __thiscall GUIFrame::GUIFrame(class wxWindow *,int,class wxString,class wxPoint,class wxSize,int)" (??0GUIFrame@@QAE@PAVwxWindow@@HVwxString@@VwxPoint@@VwxSize@@H@Z)|
GUIFrame.obj||error LNK2001: unresolved external symbol "__declspec(dllimport) wchar_t const * const wxFrameNameStr" (__imp_?wxFrameNameStr@@3QB_WB)|
bin\Debug\prova_wxcb.exe||fatal error LNK1120: 9 unresolved externals|
||=== Build finished: 12 errors, 0 warnings ===|
I noticed that the project created from Windows host adds some flags and many other settings to the target, so I'll try to copy then to my real project and , hopefully , success in compiling (next issue will be linking).
Any suggestion ?
Regards
Nicola
---
http://www.ndatech.it