64-bit Setup.py link errors on Windows XP 64

Dave Burdick dburdick at skinvue.net
Thu Jan 3 00:28:06 PST 2008


Well I've managed to get all the wxWindows DLL's compiled along with 
helpers.cpp and _core_wrap.cpp.  However, when I run the final compile and 
link to create the .PYD files:

cd %WXDIR%\wxPython
C:\Python25\python.exe setup.py build_ext --inplace MONOLITHIC=0

I get a bunch of unresolved external symbol errors.  The wx DLL's are all on 
the path:

Preparing CORE...
Preparing GLCANVAS...
Preparing STC...
Preparing ACTIVEX...
Preparing GIZMOS...
running build_ext
building '_core_' extension
adding X64 link args
C:\Program Files\Microsoft SDKs\Windows\v6.0\VC\Bin\x64
\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\wxPythonSrc\wxPython-src-
2.8.7.1\lib\vc_dll /LIBPATH:C:\Python25\libs /LIBPATH:C:\Python25\PCBuild 
wxbase28h.lib wxbase28h_net.lib wxbase28h_xml.lib wxmsw28h_core.lib 
wxmsw28h_adv.lib wxmsw28h_html.lib kernel32.lib user32.lib gdi32.lib 
comdlg32.lib winspool.lib winmm.lib shell32.lib oldnames.lib comctl32.lib 
odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib 
wsock32.lib /EXPORT:init_core_ build\temp.win32-2.5\Release\src/helpers.obj 
build\temp.win32-2.5\Release\src/wxc.res build\temp.win32-2.5
\Release\src\msw\_core_wrap.obj /OUT:wx\_core_.pyd /IMPLIB:build\temp.win32-2.5
\Release\src\_core_.lib /MACHINE:X64

here is a small sample of the link errors:

_core_wrap.obj : warning LNK4197: export 'init_core_' specified multiple 
times; using first specification
   Creating library build\temp.win32-2.5\Release\src\_core_.lib and object 
build\temp.win32-2.5\Release\src\_core_.exp
helpers.obj : error LNK2019: unresolved external symbol "public: void __cdecl 
wxStringData::Free(void)" (?Free at wxStringData@@QEAAXXZ) referenced in 
function "public: void __cdecl wxStringData::Unlock(void)" (?
Unlock at wxStringData@@QEAAXXZ)
_core_wrap.obj : error LNK2001: unresolved external symbol "public: void 
__cdecl wxStringData::Free(void)" (?Free at wxStringData@@QEAAXXZ)
helpers.obj : error LNK2019: unresolved external symbol "protected: static 
class wxAppConsole * wxAppConsole::ms_appInstance" (?
ms_appInstance at wxAppConsole@@1PEAV1 at EA) referenced in function "public: static 
void __cdecl wxAppConsole::SetInstance(class wxAppConsole *)" (?
SetInstance at wxAppConsole@@SAXPEAV1@@Z)
_core_wrap.obj : error LNK2001: unresolved external symbol "protected: static 
class wxAppConsole * wxAppConsole::ms_appInstance" (?
ms_appInstance at wxAppConsole@@1PEAV1 at EA)
helpers.obj : error LNK2019: unresolved external symbol "class wxWindowList 
wxTopLevelWindows" (?wxTopLevelWindows@@3VwxWindowList@@A) referenced in 
function "public: virtual int __cdecl wxPyApp::MainLoop(void)" (?
MainLoop at wxPyApp@@UEAAHXZ)
_core_wrap.obj : error LNK2001: unresolved external symbol "class wxWindowList 
wxTopLevelWindows" (?wxTopLevelWindows@@3VwxWindowList@@A)
helpers.obj : error LNK2019: unresolved external symbol "char const * const 
wxEmptyString" (?wxEmptyString@@3PEBDEB) referenced in function "public: 
static class wxString __cdecl wxPyApp::GetMacHelpMenuTitleName(void)" (?
GetMacHelpMenuTitleName at wxPyApp@@SA?AVwxString@@XZ)
_core_wrap.obj : error LNK2001: unresolved external symbol "char const * const 
wxEmptyString" (?wxEmptyString@@3PEBDEB)
helpers.obj : error LNK2019: unresolved external symbol "public: static 
unsigned __int64 const wxStringBase::npos" (?npos at wxStringBase@@2_KB) 
referenced in function "public: __cdecl wxStringBase::wxStringBase(char const 
*)" (??0wxStringBase@@QEAA at PEBD@Z)
_core_wrap.obj : error LNK2001: unresolved external symbol "public: static 
unsigned __int64 const wxStringBase::npos" (?npos at wxStringBase@@2_KB)
helpers.obj : error LNK2019: unresolved external symbol "public: static class 
wxClassInfo wxSizer::ms_classInfo" (?ms_classInfo at wxSizer@@2VwxClassInfo@@A) 
referenced in function "struct _object * __cdecl wxPyMake_wxObject(class 
wxObject *,bool,bool)" (?wxPyMake_wxObject@@YAPEAU_object@@PEAVwxObject@@_N1 at Z)

Any ideas as to what's happening here? 

Thanks




More information about the wxpython-users mailing list