A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/074545.html below:

Making a python extension in c++

Making a python extension in c++ Making a python extension in c++Erik Weber erikw 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 in
Setup the lines

*shared*
test test.c

it compiles test.so no problem.  If however I use the lines

*shared*
test test.cc

then the build fails with;

[erikw at devbrick4 testwiz]$ make
fpic  -g -O2 -Wall -Wstrict-prototypes -I/usr/local/include/python2.0 -I/usr
/loc
al/include/python2.0 -DHAVE_CONFIG_H -c ./test.cc
make: fpic: Command not found
make: [test.o] Error 127 (ignored)
gcc -shared  test.o  -o test.so
gcc: test.o: No such file or directory
gcc: No input files
make: *** [test.so] Error 1
[erikw at devbrick4 testwiz]$

It seems to me as though the ".cc" extension causes the Makefile.pre.in
stuff to fail.  Has anyone compiled a C++ based extension?  If so, what did
your Setup file look like?

--
  -Erik Weber
   Lineo Seattle
   206.285.2506 x204






More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4