[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] MMX Transform for Win32



Brian Fisher wrote:

I think gcc supports C++ as a rule. Aside from interfacing the C++
code from the C code with extern "C" statements, what would be the
difficulty there?

Depending on what features of C++ it uses, the effects
can spread beyond just the code in question -- e.g.
introducing dependencies on C++ runtime libraries,
requiring the main program to be linked as C++ (so that
static constructors get called), and so forth.

If things can be arranged so that just the one module
is compilable as C++, and the module is optional, it's
not so bad.

--
Greg