[Pythonmac-SIG] C++ extension on OS-X Jaguar
Jack Jansen
Jack.Jansen@oratrix.com
Wed, 9 Oct 2002 16:58:10 +0200
On woensdag, oktober 9, 2002, at 12:01 , Chris Barker wrote:
>
> The two I have that are written in C worked just fine out of
> the box, compiled with the setup.py script I wrote under linux.
> The third, written in C++, seems to compile just fine, but I
> can't load it. I get a:
This just came by on another mailing list. The problem is that
the link step is done with "gcc", not "g++", so you have to add
the C++ library by hand. The easiest is to add an
extra_link_libraries (iirc) flag to the setup.py file.
--
- Jack Jansen <Jack.Jansen@oratrix.com>
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution --
Emma Goldman -