User forums > Help

Problems with creating a wxwidgets Project

<< < (2/4) > >>

testalucida:
oops - missed your last answer...
Thanks for your hint, it really was a Typo  :x

Biplab:

--- Quote from: testalucida on January 07, 2007, 07:15:22 pm ---The wizard is working now, but there is still a question:

a linking error occurs, when having checked "Enable Unicode" (MS8 only) - why is that?

--- End quote ---

Thanks for your feedback. Specify the errors that you're getting. I'll try to assist you.  :)

testalucida:
great, Biplab, thank you  :D

that's what the linker says:

:: === kannweg16, Debug ===
main.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)
main.obj:: error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::wxString(wchar_t const *)" (__imp_??0wxString@@QAE@PB_W@Z) referenced in function "class wxString __cdecl wxbuildinfo(enum wxbuildinfoformat)" (?wxbuildinfo@@YA?AVwxString@@W4wxbuildinfoformat@@@Z)
app.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall wxString::wxString(wchar_t const *)" (__imp_??0wxString@@QAE@PB_W@Z)
main.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) wchar_t const * const wxStatusLineNameStr" (__imp_?wxStatusLineNameStr@@3QB_WB)
main.obj:: error LNK2001: unresolved external symbol "__declspec(dllimport) wchar_t const * const wxFrameNameStr" (__imp_?wxFrameNameStr@@3QB_WB)
app.obj:: error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxApp::Initialize(int &,wchar_t * *)" (?Initialize@wxApp@@UAE_NAAHPAPA_W@Z)
app.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)
app.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)
bin\Debug\kannweg16.exe:: fatal error LNK1120: 7 unresolved externals
:: === Build finished: 9 errors, 0 warnings ===

what does it mean?

thanks in advance and ciao
testalucida

Biplab:
It seems that your wxWidgets lib is compiled differently than the settings used by wizard. Are you using wxPack??

Try one thing first. Open the project file (*.cbp in Notepad). Search for the word "/Zc:wchar_t". Change it to "/Zc:wchar_t-". Save the project file and then try compiling your application again.

Regards,

Biplab

testalucida:
Hi Biplab,
thanks again - I'll try later and give you feedback.
Regards
testalucida

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version