|
Boost Users : |
From: Yaser Zhian (yahoo_at_[hidden])
Date: 2007-10-21 14:33:06
Mark Wyszomierski wrote:
> Hi,
>
> I have an installer for win32 which installs the boost libraries. I'm
> trying to link to the serialization libraries, and several copies have
> been created in the boost/lib folder:
>
> libboost_serialization-vc80-mt-1_33_1.lib
> libboost_serialization-vc80-mt-gd-1_33_1.lib
> libboost_serialization-vc80-mt-s-1_33_1.lib
> libboost_serialization-vc80-mt-sgd-1_33_1.lib
>
> Which version should be linked to when? Right now I'm using a trial
> and error method to see which one my win32 apps can link to without
> linking errors.
>
On VC80 (and other VCs) the lib file will be linked to automatically
when you include the header files (using a "#pragma comment (lib, ...)"
if I understand it correctly.) So you shouldn't have to specify any of
the lib files explicitly.
I believe the file to link to depends on the CRT you're linking against.
If you're linking to CRT statically (as opposed to CRT in a DLL) you
should use the 's' versions ("s" or "sgd") otherwise the non-static
files. Similarly, if you are linking against a "debug build" of the CRT,
you should use the "gd" versions.
> Thanks,
> Mark
Hope I helped!
-yzt
-- "Programming is an art that fights back!"
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