[Pyrex] c++ patch usage
Szabolcs Nagy
nszabolcs at gmail.com
Thu Feb 2 02:27:57 CET 2006
Hello
I tried the c++ patch and had a little problem with it.
I used the test (cpptest.pyx), but pyrex still produce a .c file so
it's compiled as C code thus gcc fails.
I know I should tell pyrex that i want .cpp instead .c and I thought
maybe a '--swig-cpp' option would work, but in this case Pyrex added
an extra 'extern "C" {' to the begining of the file for some reason
(so gcc failed again because the cpp header included after the extern
"C" declaration).
How should i use the pyrex c++ patch?
(Sorry, I couldn't find any docs on it)
nsz
More information about the Pyrex
mailing list