Python extensions using MinGW and CXX
Gerhard Häring
gerhard.haering at opus-gmbh.net
Fri Feb 14 08:10:36 EST 2003
Reinhard Nadrchal <reinhard at proceryon.at> wrote:
> [...]
> This doesn't help; if I try c++ -mdll instead of c++ -shared the
> entrypoint (initfoo) is not recognized by python. By the way: the
> init... function is declared in a header (foo.h) and defined in the
> source file. Would it be ok to skip the declaration in the header (I
> think so) ???
You're the C++ programmer here ;-)
> Oh god, I'm afraid that we will have to use VC++ ;-) with some 60,000
> lines of c++ sourcecode written for gcc - or do you have any other ideas ???
Other than upgrading to the latest mingw, I'm out of ideas.
I'm using the latest one, based on gcc 3.2: MinGW-2.0.0-3.exe from
http://sourceforge.net/project/showfiles.php?group_id=2435
And my minimalistic example with C++ *does* work (against Python 2.2, but that
shouldn't make any difference). So there must still be some difference between
our setups.
-- Gerhard
More information about the Python-list
mailing list