Boost logo

Boost Users :

Subject: Re: [Boost-users] boost autolinkig issue - library names on vc9?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-07-13 12:04:58


AMDG

Maróy Ákos wrote:
>>> and the like, but interestingly autolinkig fails with the following
>>> message:
>>>
>>> 1>LINK : fatal error LNK1104: cannot open file
>>> 'boost_python-vc90-mt-gd-1_39.lib'
>>
>> This is (import library for) shared debug version, which is not built by
>> default. You can either use static Boost libraries, by making sure
>> BOOST_ALL_DYN_LINK, or similar, macros are not defined, or build shared
>> versions of Boost libraries, using additional link=shared option to
>> Boost.Build.
>>
>> Let me know if this helps.
>
> can you be more specific in terms of "BOOST_ALL_DYN_LINK, or similar,
> macros are not defined"? should I add sone #undef statement in my
> source code? should add some parameter to the compiler to define some
> macro?

Boost.Python's use of autolinking is different from all other libraries.
You need to define BOOST_PYTHON_STATIC_LIB to use
the static library.

In Christ,
Steven Watanabe


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