Re: Specifying library to link
Posted by Ferdinando M. Ametrano-3 on
URL: http://quantlib.414.s1.nabble.com/Specifying-library-to-link-tp10593p10594.html
Hi
At 02:29 PM 6/7/2004, Andre Louw wrote:
>I'm trying to get the SWIG/Python setup on Windows to link to a library
>other than the one created by the 'Release' configuration, where does
>'distutils'/setup.py get the information it uses to decide which library
>to link against?
I'm not that much familiar with SWIG/Python anymore, anyway the library to
be linked should be automagically selected by including config.msvc.hpp
through the inclusion of qldefines.hpp
This should apply everywhere under Windows.
>While I'm on the subject, how does it decide which compiler to use (I have
>both VC6 and 7 installed and it still uses 6 to compile with).
The above SWIG/Python disclaimer still applies, anyway it should depend on
which compiler Python has been compiled with. As long as you use the
official Python distribution compiled with VC6 you're going to only link
VC6 libraries.
ciao -- Nando