
I am having a problem linking with boost program options on windows with msvs. No mater what I specify on the command line, cl tries to ling with 'libboost_program_options-vc90-mt-s-1_42.lib'. 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? Thank you, -EdK Ed Keith e_d_k@yahoo.com Blog: edkeith.blogspot.com

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.

Thanks,
I added the /MD flag, to link the CRT dynamically, and that solved the problem.
-EdK
Ed Keith
e_d_k@yahoo.com
Blog: edkeith.blogspot.com
--- On Tue, 4/20/10, Igor R
From: Igor R
Subject: Re: [Boost-users] problem linking To: boost-users@lists.boost.org Date: Tuesday, April 20, 2010, 6:45 PM 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 mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Ed Keith
-
Igor R