Can Python be compiled by a C++ compiler ?
From: Helmut Jarausch (jarausch_at_skynet.be)
Date: 05/12/04
- Next message: Steven Rumbalski: "Re: getting the index while iterating through a list"
- Previous message: francois lepoutre: "Dabo 3-tier desktop framework for data-aware apps"
- Next in thread: Daniel Dittmar: "Re: Can Python be compiled by a C++ compiler ?"
- Reply: Daniel Dittmar: "Re: Can Python be compiled by a C++ compiler ?"
- Reply: David M. Cooke: "Re: Can Python be compiled by a C++ compiler ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 12 May 2004 17:28:56 +0200
Hi,
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
ss_arc *ss_arc
where ss_arc is defined by a previous typedef. A C++ compiler won't
accept this.
Do I miss something?
Many thanks for your comments,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
- Next message: Steven Rumbalski: "Re: getting the index while iterating through a list"
- Previous message: francois lepoutre: "Dabo 3-tier desktop framework for data-aware apps"
- Next in thread: Daniel Dittmar: "Re: Can Python be compiled by a C++ compiler ?"
- Reply: Daniel Dittmar: "Re: Can Python be compiled by a C++ compiler ?"
- Reply: David M. Cooke: "Re: Can Python be compiled by a C++ compiler ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]