Boost logo

Boost Users :

Subject: Re: [Boost-users] linking agaisnt boost
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-03-24 21:22:11


AMDG

arun ramakrishnan wrote:
> A nube question . I have been trying to understand the whole link process in VC++ . I use visual studio 8. I was trying to install the prebuild boost libs from boostpro and I tried to build my source against 1) , 2) and 3) .
>
> The three are.
> 1)Multithread, static runtime
> libboost_thread-vc80-mt-s-1_38.lib
> 2)Multithread
> libboost_thread-vc80-mt-1_38.lib
> 3)Multithread , DLL
> boost_thread-vc80-mt-1_38.dll
> boost_thread-vc80-mt-1_38.lib
>
> I expected there to be Multithreaded static lib and then a multithreaded dynamic shared dll . Just 2 of them , not 3 . Could someone explain the need for 3 and not just 2. OR point me to a article or something please .
> I have vaguely figured that
> 1) static boost and static CRT .
> 2) static boost and dynamic CRT.
> 3) dynamic boost and dynamic CRT.
> am i right ?
>

Yes.

> I am not able to build using 3) , in spite of a lot of probing into the VC8 configuration options .
> Also , what configuration would be needed to make my project use the boost dll i.e 3).
>

If you compile with -DBOOST_ALL_DYN_LINK, then
the boost dll will be selected.

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