Using C++ and ctypes together: a vast conspiracy? ;)

skip at pobox.com skip at pobox.com
Fri Jun 5 14:54:16 CEST 2009


    >> Requiring that the C++ compiler used to make the dll's/so's to be the
    >> same one Python is compiled with wouldn't be too burdensome would it?

    Scott> And what gave you then impression that Python is compiled with a
    Scott> C++ compiler?

I don't think it's too much to expect that a C++ compiler be available for
the configure step if Python is being built in a C++ shop.  The C compiler
used to build Python proper should be compatible with the C++ compiler
available to build C++ extension modules or C++ libraries dynamically linked
into Python.

If there is no C++ compiler available then the proposed layout sniffing just
wouldn't be done and either a configure error would be emitted or a run-time
exception raised if a program attempted to use that feature.  (Or the
sniffing could be explicitly enabled/disabled by a configure flag.)

-- 
Skip Montanaro - skip at pobox.com - http://www.smontanaro.net/
    America's vaunted "free press" notwithstanding, story ideas that expose
    the unseemly side of actual or potential advertisers tend to fall by the
    wayside.  Not quite sure why.  -- Jim Thornton



More information about the Python-list mailing list