[Pyrex] pyrex and g++
Simon Burton
simon at arrowtheory.com
Fri Sep 23 06:29:14 CEST 2005
On Fri, 23 Sep 2005 15:22:56 +1200
Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>
> Pyrex generates C code, not C++ code, meaning you have to
> compile its output as C, not C++. In other words, use
> the command 'gcc', not 'g++'.
OK, this sounds like you are not even interested in considering becoming
"c++ compliant". Fair enough.
>
> If the library really does have a C interface, there should
> be no problem linking the resulting .o file with the library.
>
> One caveat is that the .h file must be suitably #ifdefed so
> that it can be processed as plain C. If not, you'll have to
> tweak it or write an alternative one.
Yes, that's the caveat I'm experiencing.
Simon.
More information about the Pyrex
mailing list