From: Charlie M. <cw...@gm...> - 2006-01-06 18:11:49
|
Hi all. Trying to build the next mpl release, and I am running into a hurdle with wx. We are trying to include the _wxagg module in the next release and this has not been done before. I am able to successfully build wx under mingw, and the entire mpl compilation goes fine until I hit the linking stage for _wxagg. Error output pasted below. Googling these errors hasn't led me to anything obvious.=20 There are a lot of mentions of the vtable for xxx undefined references. Does anybody have any clues? Thanks, -------------------------------------------------- building 'matplotlib.backends._wxagg' extension gcc options: '-O2 -Wall -Wstrict-prototypes' compile options: '-Iwin32_static\include -I. -Isrc -Iswig -Iagg23/include -I. -Iwin32_static\include -I. -Iwin32_static\include\freetype2 -I.\freetype2 -Isrc\freetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -Iwin32_static\include\freetype2 -I.\freetype2 -Ic:\Python24\include -Ic:\Python24\PC -c' g++ -shared build\temp.win32-2.4\Release\src\_wxagg.o build\temp.win32-2.4\Release\src\mplutils.o build\temp.win32-2.4\Release\cxx\cxxsupport.o build\temp.win32-2.4\Release\cxx\cxx_extensions.o build\temp.win32-2.4\Release\cxx\indirectpythoninterface.o build\temp.win32-2.4\Release\cxx\cxxextensions.o -Lwin32_static\lib -Lwin32_static\lib -Lc:\Python24\libs -Lc:\Python24\PCBuild -lpng -lz -lstdc++ -lm -lfreetype -lz -lgw32c -lstdc++ -lm -lwxmsw26 -lwxpng -lwxregex -lwxzlib -lwxexpat -lwxjpeg -lwxtiff -lpython24 -lmsvcr71 -o build\lib.win32-2.4\matplotlib\backends\_wxagg.pyd build\temp.win32-2.4\Release\src\_wxagg.o(.text+0x7c3):_wxagg.cpp: undefined reference to `wxImage::wxImage(int, int, unsigned char*, bool)' build\temp.win32-2.4\Release\src\_wxagg.o(.text$_ZN13_wxagg_module24convert= _agg_to_wx_bitmapERKN2Py5TupleE[_wxagg_module::convert_agg_to_wx_bitmap(Py:= :Tuple const&)]+0x38d):_wxagg.cpp: undefined reference to `wxImage::wxImage(wxImage const*)' build\temp.win32-2.4\Release\src\_wxagg.o(.text$_ZN13_wxagg_module24convert= _agg_to_wx_bitmapERKN2Py5TupleE[_wxagg_module::convert_agg_to_wx_bitmap(Py:= :Tuple const&)]+0x3b8):_wxagg.cpp: undefined reference to `vtable for wxBitmap' build\temp.win32-2.4\Release\src\_wxagg.o(.text$_ZN13_wxagg_module24convert= _agg_to_wx_bitmapERKN2Py5TupleE[_wxagg_module::convert_agg_to_wx_bitmap(Py:= :Tuple const&)]+0x3df):_wxagg.cpp: undefined reference to `wxBitmap::CreateFromImage(wxImage const&, int)' build\temp.win32-2.4\Release\src\_wxagg.o(.text$_ZN13_wxagg_module24convert= _agg_to_wx_bitmapERKN2Py5TupleE[_wxagg_module::convert_agg_to_wx_bitmap(Py:= :Tuple const&)]+0x3e6):_wxagg.cpp: undefined reference to `vtable for wxObject' build\temp.win32-2.4\Release\src\_wxagg.o(.text$_ZN13_wxagg_module24convert= _agg_to_wx_bitmapERKN2Py5TupleE[_wxagg_module::convert_agg_to_wx_bitmap(Py:= :Tuple const&)]+0x3fc):_wxagg.cpp: undefined reference to `wxObject::UnRef()' build\temp.win32-2.4\Release\src\_wxagg.o(.text$_ZN13_wxagg_module24convert= _agg_to_wx_bitmapERKN2Py5TupleE[_wxagg_module::convert_agg_to_wx_bitmap(Py:= :Tuple const&)]+0x415):_wxagg.cpp: undefined reference to `wxImage::Destroy()' build\temp.win32-2.4\Release\src\_wxagg.o(.text$_ZN13_wxagg_module24convert= _agg_to_wx_bitmapERKN2Py5TupleE[_wxagg_module::convert_agg_to_wx_bitmap(Py:= :Tuple const&)]+0x55d):_wxagg.cpp: undefined reference to `vtable for wxObject' build\temp.win32-2.4\Release\src\_wxagg.o(.text$_ZN13_wxagg_module24convert= _agg_to_wx_bitmapERKN2Py5TupleE[_wxagg_module::convert_agg_to_wx_bitmap(Py:= :Tuple const&)]+0x56b):_wxagg.cpp: undefined reference to `wxObject::UnRef()' build\temp.win32-2.4\Release\src\_wxagg.o(.text$_ZN13_wxagg_module24convert= _agg_to_wx_bitmapERKN2Py5TupleE[_wxagg_module::convert_agg_to_wx_bitmap(Py:= :Tuple const&)]+0x580):_wxagg.cpp: undefined reference to `vtable for wxObject' build\temp.win32-2.4\Release\src\_wxagg.o(.text$_ZN13_wxagg_module24convert= _agg_to_wx_bitmapERKN2Py5TupleE[_wxagg_module::convert_agg_to_wx_bitmap(Py:= :Tuple const&)]+0x593):_wxagg.cpp: undefined reference to `wxObject::UnRef()' collect2: ld returned 1 exit status -------------------------------------------------------------- |