Boost logo

Boost Users :

From: Chip Collier (photex_at_[hidden])
Date: 2008-05-28 07:42:12


Thank you sir!

On 5/28/08, John Maddock <john_at_[hidden]> wrote:
>
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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