can't compile wx 2.8.1 for WM5 using vs2005
Caligola900
caligola900 at yahoo.com
Fri Jan 12 04:44:16 PST 2007
Vadim Zeitlin wrote:
> On 11 Jan 2007 15:28:27 -0800 meirkr <meirkr at gmail.com> wrote:
>
> m> dummy.obj : error LNK2019: unresolved external symbol localtime
> m> referenced in function "public: static struct tm * __cdecl
> m> wxDateTime::GetTmNow(void)" (?GetTmNow at wxDateTime@@SAPAUtm@@XZ)
>
> There is apparently something strange going on with localtime() in VS2005.
> My version has this function but you're the second person who has troubles
> with it. I really don't know why is it not there...
>
> m> dummy.obj : error LNK2019: unresolved external symbol "public: bool
> m> __cdecl wxTextCtrl::ShowNativeCaret(bool)"
> m> (?ShowNativeCaret at wxTextCtrl@@QAA_N_N at Z) referenced in function
> m> "public: bool __cdecl wxTextCtrl::HideNativeCaret(void)"
> m> (?HideNativeCaret at wxTextCtrl@@QAA_NXZ)
>
> This is just a bug due to having 2 different (but strongly overlapping)
> versions of wxTextCtrl in src/msw/textctrl.cpp and src/msw/textctrlce.cpp.
> I don't know what to do about this, the current code is completely
> unmaintainable... Workaround for now would be to just stub out the
> ShowNativeCaret() function for WinCE.
>
> m> mediactrlcmn.obj : error LNK2019: unresolved external symbol "void
> m> __cdecl _wx_link_dummy_func_wxmediabackend_am(void)"
> m> (?_wx_link_dummy_func_wxmediabackend_am@@YAXXZ) referenced in function
> m> "public: __cdecl
> m> wxForceLinkwxmediabackend_am::wxForceLinkwxmediabackend_am(void)"
> m> (??0wxForceLinkwxmediabackend_am@@QAA at XZ)
> m>
> m> mediactrlcmn.obj : error LNK2019: unresolved external symbol "void
> m> __cdecl _wx_link_dummy_func_wxmediabackend_wmp10(void)"
> m> (?_wx_link_dummy_func_wxmediabackend_wmp10@@YAXXZ) referenced in
> m> function "public: __cdecl
> m> wxForceLinkwxmediabackend_wmp10::wxForceLinkwxmediabackend_wmp10(void)"
> m> (??0wxForceLinkwxmediabackend_wmp10@@QAA at XZ)
> m>
> m> auibook.obj : error LNK2019: unresolved external symbol "public: void
> m> __cdecl wxAuiMDIChildFrame::DoShow(bool)"
> m> (?DoShow at wxAuiMDIChildFrame@@QAAX_N at Z) referenced in function "void
> m> __cdecl ShowWnd(class wxWindow *,bool)"
> m> (?ShowWnd@@YAXPAVwxWindow@@_N at Z)
> m>
> m> auibook.obj : error LNK2001: unresolved external symbol "public: static
> m> class wxClassInfo wxAuiMDIChildFrame::ms_classInfo"
> m> (?ms_classInfo at wxAuiMDIChildFrame@@2VwxClassInfo@@A)
> m>
> m> auibook.obj : error LNK2019: unresolved external symbol "public: void
> m> __cdecl wxAuiMDIChildFrame::ApplyMDIChildFrameRect(void)"
> m> (?ApplyMDIChildFrameRect at wxAuiMDIChildFrame@@QAAXXZ) referenced in
> m> function "public: void __cdecl wxTabFrame::DoSizing(void)"
> m> (?DoSizing at wxTabFrame@@QAAXXZ)
> m> ..\..\lib\evc_armv4t_dll\wxwince28d_evc_custom.dll : fatal error
> m> LNK1120: 7 unresolved externals
>
> For the rest I think you should disable media and aui libraries build, you
> probably don't need them on a CE device.
>
> Regards,
> VZ
>
Thanks to everybody!
I downloaded source files from CVS about two hours ago (mainly because I
couldn't download
http://biolpc22.york.ac.uk/pub/CVS_HEAD/v2/wxWidgets.zip , maybe the
server down? Yesterday it was ok...). Project files for wince were
missing, so I've copied them from wxMSW-2.8.1. According to
Vadim'suggestions I've disabled both aui and mediactrl. I don't have any
problem with wxTextCtrl. The only (the last one before a successful
build? :-) ) error I get is this (as already posted before by someone else):
dummy.obj : error LNK2019: unresolved external symbol localtime
referenced in function "public: static struct tm * __cdecl
wxDateTime::GetTmNow(void)" (?GetTmNow at wxDateTime@@SAPAUtm@@XZ)
Any suggestions?
Thanks in advance,
Paolo
More information about the wx-users
mailing list