|
Boost Users : |
Subject: Re: [Boost-users] Linking with dynamic boost thread library
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2009-04-08 09:27:00
Hi!
your project file must explicitly link with dynamic C++ runtime. If your
project is set to use static C++ runtime it will use static threading lib.
If you e.g. rename boost_thread-vc80...lib to libboost_... C++ linker will
blame, that you are mixing static and dynamic runtimes.
Regards,
Ovanes
On Wed, Apr 8, 2009 at 3:14 PM, Igor <kostadinovigor_at_[hidden]> wrote:
> I build the thread library with the following cmd command:
> bjam.exe toolset=msvc --with-thread --prefix=C:\boost\
> variant=debug,release link=shared install
> after which I get the following libs:
>
> boost_thread-vc80-mt.lib
> boost_thread-vc80-mt-1_38.dll
> boost_thread-vc80-mt-1_38.lib
> boost_thread-vc80-mt-gd.lib
> boost_thread-vc80-mt-gd-1_38.dll
> boost_thread-vc80-mt-gd-1_38.lib
>
> In my application, I placed #define BOOST_THREAD_DYN_LINK in all the
> cpp files where thread library is included.
>
> I get the following error:
>
> LINK : fatal error LNK1104: cannot open file
> 'libboost_thread-vc80-mt-gd-1_38.lib'
>
> How many mistakes have I done?
> _______________________________________________
> 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