run a sample with unicode settings!

Questions about wxWidgets running on MS.NET, mono or Portable.NET ? Ask it here !
Post Reply
saffari2005
Earned a small fee
Earned a small fee
Posts: 15
Joined: Sat Oct 21, 2006 11:04 am

run a sample with unicode settings!

Post 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?
User avatar
tierra
Site Admin
Site Admin
Posts: 1355
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA
Contact:

Post 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.
saffari2005
Earned a small fee
Earned a small fee
Posts: 15
Joined: Sat Oct 21, 2006 11:04 am

Post 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
Post Reply