Hi,
I get a link error when I build my program with wxPython2.6-win32-devel-2.6.1.0.
I use vc7.1. The error message is as follows:
test.obj : error LNK2001: unresolved external symbol "class wxWindowList wxTopLevelWindows" (?wxTopLevelWindows@@3VwxWindowList@@A)
test.obj : error LNK2001: unresolved external symbol "protected: static class wxAppConsole * wxAppConsole::ms_appInstance" (?ms_appInstance@wxAppConsole@@1PAV1@A)
test.obj : error LNK2001: unresolved external symbol "protected: static class wxAppConsole * wxAppConsole::ms_appInstance" (?ms_appInstance@wxAppConsole@@1PAV1@A)
test.obj : error LNK2001: unresolved external symbol "char const * const wxStatusLineNameStr" (?wxStatusLineNameStr@@3PBDB)
test.obj : error LNK2001: unresolved external symbol "class wxPoint const wxDefaultPosition" (?wxDefaultPosition@@3VwxPoint@@B)
I added all available libraries of wxPython2.6-win32-devel-2.6.1.0 including
wxmsw26h_gl.lib,
wxmsw26h.lib,
wxtiffh.lib,
wxjpegh.lib,
wxpngh.lib,
wxzlibh.lib,
wxregexh.lib,
wxexpath.lib,
but it still doesn't work.
It works well after I add #define WXUSINGDLL in my cpp files.
ยทยทยท
On Wed, Jun 29, 2005 at 05:00:08PM +0800, Clark wrote:
Hi,
I get a link error when I build my program with wxPython2.6-win32-devel-2.6.1.0.
I use vc7.1. The error message is as follows:
test.obj : error LNK2001: unresolved external symbol "class wxWindowList wxTopLevelWindows" (?wxTopLevelWindows@@3VwxWindowList@@A)
test.obj : error LNK2001: unresolved external symbol "protected: static class wxAppConsole * wxAppConsole::ms_appInstance" (?ms_appInstance@wxAppConsole@@1PAV1@A)
test.obj : error LNK2001: unresolved external symbol "protected: static class wxAppConsole * wxAppConsole::ms_appInstance" (?ms_appInstance@wxAppConsole@@1PAV1@A)
test.obj : error LNK2001: unresolved external symbol "char const * const wxStatusLineNameStr" (?wxStatusLineNameStr@@3PBDB)
test.obj : error LNK2001: unresolved external symbol "class wxPoint const wxDefaultPosition" (?wxDefaultPosition@@3VwxPoint@@B)
I added all available libraries of wxPython2.6-win32-devel-2.6.1.0 including
wxmsw26h_gl.lib,
wxmsw26h.lib,
wxtiffh.lib,
wxjpegh.lib,
wxpngh.lib,
wxzlibh.lib,
wxregexh.lib,
wxexpath.lib,
but it still doesn't work.
Would you kindly give me some hints?
regards,
Clark
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org