[Python-bugs-list] [Bug #113106] distutils' msvccompiler.py has small C++ defects

noreply@sourceforge.net noreply@sourceforge.net
Wed, 30 Aug 2000 04:57:12 -0700


Bug #113106, was updated on 2000-Aug-30 04:57
Here is a current snapshot of the bug.

Project: Python
Category: Distutils
Status: Open
Resolution: None
Bug Group: Platform-specific
Priority: 5
Summary: distutils' msvccompiler.py has small C++ defects

Details: At least in 1.6b1, the msvccompiler.py module of distutils
has a couple of lacks in C++ support, that show up strongly at least when building the "CXX" extension (I also submitted those to the CXX group, but there's little they can do about them, I think).

a) .cxx is not a recognized extension -- it should be listed together with .cc and .cpp, as it's quite common (and it's the one used by the CXX group, as it happens).
Falling-off-a-log-easy to fix.

b) the /GX switch is not given when building C++ sources, which causes (at the very least) warnings from the standard C++ library headers, erroneous handling of exceptions, etc.
Pretty easy to fix as each sourcefile is being separately identified as C++ or C source, just no use is being made of this yet to select the compilation options (I think /gx should be mandatory for C++ sources to give behavior closer to C++ standard, make C++ standard library usable, etc; /gr
for RTTI is a harder decision as it imposes some overhead).


Alex


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=113106&group_id=5470