[Python-Dev] Linux Python linking with G++?
"Martin v. Löwis"
martin at v.loewis.de
Fri Jul 8 23:47:24 CEST 2005
David Abrahams wrote:
> Unless, of course, I'm missing something. So if I am missing
> something, what is it?
You are missing something, and I can only repeat myself. Some systems
require main() to be compiled as C++, or else constructors may not work
(and perhaps other things fail as well). The configure option --with-cxx
(documented as "enable C++ support") make Python C++ options work on
such systems. It is automatically enabled if a C++ compiler is found.
There is configure auto-detection for what linker is used when
ccpython.o becomes main().
This is the state of the things as it is. In what way would you like to
see that state changed?
I could personally accept if ccpython and --with-cxx would be dropped
entirely (i.e. deliberately breaking systems which require it); I
just notice the irony of history: ccpython.cc was originally introduced
to better support C++ extension modules - now it might get removed
for the very same reason (to better support C++ extension modules).
Regards,
Martin
More information about the Python-Dev
mailing list