Re[4]: can't compile wx 2.8.1 for WM5 using vs2005

Re[4]: can't compile wx 2.8.1 for WM5 using vs2005

Post by vadi » Sat, 13 Jan 2007 10:38:29



m> dummy.obj : error LNK2019: unresolved external symbol localtime
m> referenced in function "public: static struct tm * __cdecl
m> wxDateTime::GetTmNow(void)" (?GetTmNow@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@wxTextCtrl@@QAA_N_N@Z) referenced in function
m> "public: bool __cdecl wxTextCtrl::HideNativeCaret(void)"
m> (?HideNativeCaret@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@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@XZ)
m>
m> auibook.obj : error LNK2019: unresolved external symbol "public: void
m> __cdecl wxAuiMDIChildFrame::DoShow(bool)"
m> (?DoShow@wxAuiMDIChildFrame@@QAAX_N@Z) referenced in function "void
m> __cdecl ShowWnd(class wxWindow *,bool)"
m> (?ShowWnd@@YAXPAVwxWindow@@_N@Z)
m>
m> auibook.obj : error LNK2001: unresolved external symbol "public: static
m> class wxClassInfo wxAuiMDIChildFrame::ms_classInfo"
m> (?ms_classInfo@wxAuiMDIChildFrame@@2VwxClassInfo@@A)
m>
m> auibook.obj : error LNK2019: unresolved external symbol "public: void
m> __cdecl wxAuiMDIChildFrame::ApplyMDIChildFrameRect(void)"
m> (?ApplyMDIChildFrameRect@wxAuiMDIChildFrame@@QAAXXZ) referenced in
m> function "public: void __cdecl wxTabFrame::DoSizing(void)"
m> (?DoSizing@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

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.yqcomputer.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: XXXX@XXXXX.COM
For additional commands, e-mail: XXXX@XXXXX.COM
 
 
 

Re[4]: can't compile wx 2.8.1 for WM5 using vs2005

Post by vadi » Tue, 16 Jan 2007 09:43:02


m> removing the test of VC8 makes many other problems.

It really shouldn't -- after all the same code still compiles with eVC4.
Are you sure you removed the tests for it in all places?

m> so,
m> I just disabled some lines in include\wx\datetime.h file:
m> /*
m> // another one to get the current time broken down
m> static struct tm *GetTmNow()
m> {
m> time_t t = GetTimeNow();
m> return localtime(&t);
m> }
m> */
m>
m> and there are no "locatltime" link errors anymore !!!

But this means there is no code using GetTmNow() anywhere. If there were,
it still wouldn't have lunk.

m> So, tell me please if you find this solution helpful, and VADIM - tell
m> me please if it really ok to delete those lines as a solution - Do I
m> miss something else???

I guess this is a good enough workaround for now but I still have no idea
why did it work for me but not the others. I'll try to test it again one of
these days.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.yqcomputer.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: XXXX@XXXXX.COM
For additional commands, e-mail: XXXX@XXXXX.COM