|
Boost Users : |
From: Andrew Holden (aholden_at_[hidden])
Date: 2008-01-07 09:54:01
Lizheng [pango99_at_[hidden]] wrote:
> I download the precompiled static boost librarys from boost-consulting
> website,I found there is more than one "lib" files for a boost
library,
> for example "regex" library,there exist below ".lib" files:
> - libboost_regex-vc80-mt-1_34_1.lib;
> - libboost_regex-vc80-mt-gd-1_34_1.lib;
> - libboost_regex-vc80-mt-s-1_34_1.lib;
> - libboost_regex-vc80-mt-sgd-1_34_1.lib;
> - libboost_regex-vc80-s-1_34_1.lib;
> - libboost_regex-vc80-sgd-1_34_1.lib;
> so what is the function of the files?I most use VC8 and MFC to write
my
> program,so which ".lib" file my program linked?If I want my program to
> link with a boost dll library,how can I do?
Please see
http://www.boost.org/more/getting_started/windows.html#library-naming
for a description of those library names.
I think you can get the dll versions by defining BOOST_REGEX_DYN_LINK or
BOOST_ALL_DYN_LINK before including regex.hpp. I would personally
recommend setting it in your project options to ensure all translation
units call for the same version of the library. I got this information
by looking through the source; can somebody verify it and/or link the
documentation page.
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