[Python-Dev] Why is python linked with c++?

Skip Montanaro skip@pobox.com
Wed, 9 Jul 2003 10:41:22 -0500

    Martin> This change was needed to support various C++ compilers that
    Martin> would fail to link Modules/ccpython.cc with the C compiler.

What is ccpython.cc and why do I need it?  I don't see it used during the
build process.

Regardless whether c++ is supposed to be used to link python.exe on Mac OS X
or not, there is still a bug that needs fixing:

    ar cr libpython2.3.a Modules/threadmodule.o  Modules/signalmodule.o  Modules/posixmodule.o  Modules/errnomodule.o  Modules/_sre.o  Modules/_codecsmodule.o  Modules/zipimport.o  Modules/symtablemodule.o  Modules/xxsubtype.o
    ranlib libpython2.3.a
    c++ -Kthread  -u __dummy -u _PyMac_Error -framework System -framework CoreServices -framework Foundation -o python.exe \
                    Modules/python.o \
                    libpython2.3.a -ldl      
    c++: unrecognized option `-Kthread'