Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2008-05-28 05:29:05


Chip Collier wrote:
>> Hello,
>>
>> I'm trying to statically link to Boost.Python from the
>> Boost-consulting binary distribution.
>> No matter what I try I'm either getting the furiously annoying error
>> message "mixing dll with a static runtime is a bad idea", or in the
>> other situations I'm being told that boost_python-vc80-mt-1_35.lib
>> can't be found, which is not what I want to link with in the first
>> place hence I didn't install DLL versions of boost.
>> All I want to do is statically link to boost.python. Is there some
>> voodoo I could perform? If I define BOOST_PYTHON_NO_LIB and try
>> to link with libboost_python_vc80-mt(-s)-1_35.lib I get unresolved
>> externals for calls using __declspec(dllimport).

As I understand it the python library expects to perform dll-linking by
default, defining BOOST_PYTHON_STATIC_LIB when building your application
should do the trick.

HTH, John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net