Page 1 of 1

run a sample with unicode settings!

Posted: Mon May 14, 2007 8:26 am
by saffari2005
Hi freinds,
for some reason I downloaded wxWindgets 2.6.4 and build it in VS 2005 succesfully.after that I try to run MFC sample of this package in unicode mode( by setting character set as Unicode in project properties ), but I recieved 11 link errors:

Code: Select all

mfctest.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxApp::Initialize(int &,wchar_t * *)" (?Initialize@wxApp@@UAE_NAAHPAPA_W@Z)
mfctest.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)
mfctest.obj : error LNK2019: unresolved external symbol "protected: void __thiscall wxStringBase::InitWith(wchar_t const *,unsigned int,unsigned int)" (?InitWith@wxStringBase@@IAEXPB_WII@Z) referenced in function "public: __thiscall wxStringBase::wxStringBase(wchar_t const *)" (??0wxStringBase@@QAE@PB_W@Z)
mfctest.obj : error LNK2019: unresolved external symbol "bool __cdecl wxEntryStart(int &,wchar_t * *)" (?wxEntryStart@@YA_NAAHPAPA_W@Z) referenced in function "public: virtual int __thiscall CTheApp::InitInstance(void)" (?InitInstance@CTheApp@@UAEHXZ)
mfctest.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxEmptyString" (?wxEmptyString@@3PB_WB)
mfctest.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxStatusLineNameStr" (?wxStatusLineNameStr@@3PB_WB)
mfctest.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxPanelNameStr" (?wxPanelNameStr@@3PB_WB)
mfctest.obj : error LNK2019: unresolved external symbol "void __cdecl wxAssert(int,wchar_t const *,int,wchar_t const *,wchar_t const *)" (?wxAssert@@YAXHPB_WH00@Z) referenced in function "public: __thiscall wxStringBase::wxStringBase(class wxStringBase const &)" (??0wxStringBase@@QAE@ABV0@@Z)
mfctest.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxFrameNameStr" (?wxFrameNameStr@@3PB_WB)
msvcrtd.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
vc_mswd\mfctest.exe : fatal error LNK1120: 10 unresolved externals
plz tell me why?

Posted: Mon May 14, 2007 4:13 pm
by tierra
You need to build the Unicode wxWidgets libraries and link with those if you are going to use Unicode in your own project.

Posted: Wed May 16, 2007 6:03 am
by saffari2005
I built unicode libs but still I have erros :

Code: Select all

msvcrtd.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
vc_mswud\mfctest.exe : fatal error LNK1120: 1 unresolved externals