I have successfully built and installed wxPython, so that I can use the WXAgg backend for matplotlib. Now, trying to build matplotlib, I get the following error:
/usr/bin/g++ -bundle -undefined dynamic_lookup build/temp.darwin-
8.2.0-Power_Macintosh-2.4/src/_na_transforms.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/src/mplutils.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/CXX/cxx_extensions.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/CXX/cxxsupport.o
build/temp.darwin-8.2.0-Power_Macintosh-2.4/CXX/IndirectPythonInterface.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/CXX/cxxextensions.o -L/usr/local/lib -L/usr/lib -lstdc++ -lm -o build/lib.darwin-8.2.0-Power_Macintosh-2.4/matplotlib/_na_transforms.so
ld: build/temp.darwin-8.2.0-Power_Macintosh-2.4/src/_na_transforms.o illegal reference for -dynamic code (section difference reference from section (__TEXT,__eh_frame) relocation entry (20) to symbol: _ZSt21_Rb_tree_rotate_rightPSt18_Rb_tree_node_baseRS0 defined in dylib: /usr/local/lib/libstdc++.dylib)
ld: build/temp.darwin-8.2.0-Power_Macintosh-2.4/src/_na_transforms.o illegal reference for -dynamic code (section difference reference from section (__TEXT,__eh_frame) relocation entry (24) to symbol: _ZSt20_Rb_tree_rotate_leftPSt18_Rb_tree_node_baseRS0 defined in dylib: /usr/local/lib/libstdc++.dylib)
error: command ‘/usr/bin/g++’ failed with exit status 1
I am using gcc 3.3, and ActivePython 2.4.1.
Any ideas as to what is going wrong?