Boost logo

Boost Users :

Subject: Re: [Boost-users] problem linking
From: Igor R (boost.lists_at_[hidden])
Date: 2010-04-20 18:45:49


> No mater what I specify on the command line, cl tries to ling with 'libboost_program_options-vc90-mt-s-1_42.lib'.

You link your project with static CRT, don't you? So the boost libs
must also use static CRT, and that's what "-s" stands for.

> When I built the boost libraries it built 'libboost_program_options-vc90-mt-1_42.lib',
> 'libboost_program_options-vc90-mt.lib',
> 'libboost_program_options-vc90-mt-gd-1_42.lib', and
> 'libboost_program_options-vc90-mt-gd.lib', but not
> 'libboost_program_options-vc90-mt-s-1_42.lib'. I have tried to tell cl to link with one of the libraries that was build, but it still links with 'libboost_program_options-vc90-mt-s-1_42.lib' regardless of what I specify on the command line.
>
> Has anyone else seen this problem or have any idea how to solve it?

Add "runtime-link=static" to bjam line.


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