[wxpython-users] Building for MSW with cygwin/mingw32

Frank Hempel red_socks at gmx.de
Fri Sep 26 08:52:04 PDT 2008


Hello,

Building the current stable release (2.8.8.1) of wxPython under WinXP 
using cygwin/mingw32 following the instructions given in the BUILD page 
throws an "Undefined reference" error. It occurs during linking the 
_control_wrap.o when setting up the python wrapper. Building wx itself 
did work out, though.

Has someone already experienced that too?

Regards, Frank

-------------

C:\cygwin\bin\g++.exe -mno-cygwin -shared -s 
build.unicode\temp.win32-2.5\Releas
e\src\msw\_controls_wrap.o 
build.unicode\temp.win32-2.5\Release\src\msw\_control
s_.def -L/opt/wx/2.8/lib -Lc:\Python25\libs -Lc:\Python25\PCBuild 
-lwx_mswud_ric
htext-2.8 -lwx_mswud_aui-2.8 -lwx_mswud_xrc-2.8 -lwx_mswud_qa-2.8 
-lwx_mswud_htm
l-2.8 -lwx_mswud_adv-2.8 -lwx_mswud_core-2.8 -lwx_baseud_xml-2.8 
-lwx_baseud_net
-2.8 -lwx_baseud-2.8 -lpython25 -lmsvcr71 -o wx\_controls_.pyd 
-mno-cygwin -mwin
dows -mthreads -mno-cygwin -mwindows -Wl,--subsystem,windows -mwindows
build.unicode\temp.win32-2.5\Release\src\msw\_controls_wrap.o:_controls_wrap.cpp
:(.text+0xcdf5a): undefined reference to 
`__imp___ZTV23wxDatePickerCtrlGeneric'
build.unicode\temp.win32-2.5\Release\src\msw\_controls_wrap.o:_controls_wrap.cpp
:(.text+0xcdf65): undefined reference to 
`__imp___ZN23wxDatePickerCtrlGeneric4In
itEv'
build.unicode\temp.win32-2.5\Release\src\msw\_controls_wrap.o:_controls_wrap.cpp
:(.text+0xcdfd0): undefined reference to 
`__imp___ZN23wxDatePickerCtrlGeneric6Cr
eateEP8wxWindowiRK10wxDateTimeRK7wxPointRK6wxSizelRK11wxValidatorRK8wxString'
build.unicode\temp.win32-2.5\Release\src\msw\_controls_wrap.o:_controls_wrap.cpp
:(.text+0xce98d): undefined reference to 
`__imp___ZTV23wxDatePickerCtrlGeneric'
build.unicode\temp.win32-2.5\Release\src\msw\_controls_wrap.o:_controls_wrap.cpp
:(.text+0xce998): undefined reference to 
`__imp___ZN23wxDatePickerCtrlGeneric4In
itEv'
build.unicode\temp.win32-2.5\Release\src\msw\_controls_wrap.o:_controls_wrap.cpp
:(.text+0xceece): undefined reference to 
`__imp___ZN23wxDatePickerCtrlGeneric6Cr
eateEP8wxWindowiRK10wxDateTimeRK7wxPointRK6wxSizelRK11wxValidatorRK8wxString'
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1


More information about the wxpython-users mailing list