On 2010-Jul-25 02:06:11 -0700, Simon King <[email protected]> wrote:
>I thought that Cython generates C code, which is then processed
>further with gcc. But in this case, it seems that C++ code is
>generated. However, this C++ code is still processed with gcc, not g++.

This is allowable.  gcc and g++ are a front-ends that invoke various
back ends to achieve the action specified on the command line.  The
main differences are that g++ understands how to link C++ programs
and assumes .c, .h and .i are C++ rather than C.  If you pass x.C or
x.cc to gcc, it will correctly compile them as C++.

I recommend a read of 'info gcc inv inv'.

>And why is gcc rather than g++ invoked? How can this be changed?

Alternatively, invoke gcc with '-x c++' before the C++ source.

-- 
Peter Jeremy

Attachment: pgp2AZLtKqvmK.pgp
Description: PGP signature

Reply via email to