Boost logo

Boost Users :

Subject: [Boost-users] [Auto-link] Visual Studio doesn't search for the correct libraries
From: Angelo Moscati (moscati_at_[hidden])
Date: 2013-02-06 09:14:43


Hi,

I recently moved from Boost version 1.49 to 1.52.

I want to use the static library versions but the autolink keep to requeire
the dynamic one.

This is the command line i use to build boost on Windows:
set REQUESTED_BOOST_LIBRARIES=--with-serialization --with-thread
--with-date_time --with-system --with-regex --with-filesystem --with-log
set ADDITIONAL_BOOST_FLAGS=define=BOOST_LOG_NO_COMPILER_TLS
rem x86
.\b2 -j 8 link=static runtime-link=static runtime-debugging=on
variant=debug threading=multi --abbreviate-paths architecture=x86
--stagedir=stage\x86\debug %ADDITIONAL_BOOST_FLAGS%
%REQUESTED_BOOST_LIBRARIES%

When i try to build my application, i get the follow errors (it builds fine
with Boost 1.49):
error LNK1104: cannot open file 'libboost_filesystem-vc100-mt-gd-1_52.lib'.
But the library i built is libboost_filesystem-vc100-mt-sgd-1_52.lib.

Can you tell me what i do wrong?

Thanks,
Angelo



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