Movatterモバイル変換
[0]ホーム
Making a python extension in c++
Erik Webererikw at lineo.com
Mon Apr 23 19:07:18 EDT 2001
I am attempting to make a Python-2.0 extension on Linux. If I include inSetup the lines*shared*test test.cit compiles test.so no problem. If however I use the lines*shared*test test.ccthen the build fails with;[erikw at devbrick4 testwiz]$ makefpic -g -O2 -Wall -Wstrict-prototypes -I/usr/local/include/python2.0 -I/usr/local/include/python2.0 -DHAVE_CONFIG_H -c ./test.ccmake: fpic: Command not foundmake: [test.o] Error 127 (ignored)gcc -shared test.o -o test.sogcc: test.o: No such file or directorygcc: No input filesmake: *** [test.so] Error 1[erikw at devbrick4 testwiz]$It seems to me as though the ".cc" extension causes the Makefile.pre.instuff to fail. Has anyone compiled a C++ based extension? If so, what didyour Setup file look like?-- -Erik Weber Lineo Seattle 206.285.2506 x204
More information about the Python-listmailing list
[8]ページ先頭