Boost logo

Boost Users :

Subject: Re: [Boost-users] Sanity check please?: Boost 1_55_0 and building VS2012 static libs?
From: Asbjørn (lordcrc_at_[hidden])
Date: 2014-05-22 07:37:29


On 22.05.2014 12:53, g4_at_[hidden] wrote:
>> Worth a double-check.
>
> I did. Several times before I posted. If you have the time repeat,
> precisely, the steps I outlined and you will get a bad build with 1_55_0.

"libboost_system-vc110-mt-gd-1_55.lib" naming indicates the lib file is
built for shared runtime, not static, but your project is using static
runtime (/MTd).

I noticed now that you specify - in front of the properties when
building, AFAIK this is incorrect usage[1].

At least I don't when building boost. Here's what I just ran (using
vs2013, don't have 2021 here right now):

b2 link=static threading=multi runtime-link=static --with-filesystem

which produced the following file:
"libboost_filesystem-vc120-mt-sgd-1_55.lib"

Notice it's "sgd" and not just "gd", for static runtime.

[1]:
http://www.boost.org/boost-build2/doc/html/bbv2/overview/invocation.html#bbv2.overview.invocation.properties

- Asbjørn


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