Can Python be compiled by a C++ compiler ?
From: Helmut Jarausch (jarausch_at_skynet.be)
Date: Wed, 12 May 2004 17:28:56 +0200
having read http://www.python.org/doc/current/ext/ext.html by Guido van
Rossum and Fred Drake,
I got the impression I should compile Python with g++ since section 1.11
indicates that otherwise the constructor of a global or static object
(of an extension in C++) won't be called.
Now trying to build Python (CVS version) with g++ fails. E.g., one
problem is in Parser/pgen.c line 364 with a typical C-like confusion of
types and variables when it declares
where ss_arc is defined by a previous typedef. A C++ compiler won't
Do I miss something?
Many thanks for your comments,
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany