how to build wxPython w/ Sun's C++ compiler?
Skip Montanaro
skip at pobox.com
Mon Sep 9 17:29:28 EDT 2002
wxPython uses distutils to build. I'm trying to build it on a Solaris
system using Sun's C and C++ compilers (cc & CC, respectively). When I
execute
python setup.py build
it tries to use "cc" instead of CC to compile C++ code, with predictable
results:
running build_ext
building 'wxc' extension
cc -DNDEBUG -O -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc -I/home/skip/local/SunOS/include/python2.2 -c src/helpers.cpp -o build/temp.solaris-2.8-sun4u-2.2/src/helpers.o -I/home/skip/local/SunOS/lib/wx/include/gtk-2.3 -I/home/skip/local/SunOS/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_REENTRANT -I/home/skip/local/SunOS/include/gtk-1.2 -I/home/skip/local/SunOS/include/glib-1.2 -I/home/skip/local/SunOS/lib/glib/include -I/usr/openwin/include
cc: No input file specified, no output generated
error: command 'cc' failed with exit status 1
How do I convince it to use CC for files with .cpp extensions.
Thx,
--
Skip Montanaro
skip at pobox.com
consulting: http://manatee.mojam.com/~skip/resume.html
More information about the Python-list
mailing list