run a sample with unicode settings!

Questions about wxWidgets running on MS.NET, mono or Portable.NET ? Ask it here !
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!

Postby saffari2005 » Mon May 14, 2007 8:26 am

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: 1331
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA
Contact:

Postby tierra » Mon May 14, 2007 4:13 pm

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

Postby saffari2005 » Wed May 16, 2007 6:03 am

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


Return to “wx.NET”

Who is online

Users browsing this forum: No registered users and 2 guests