|
Boost Users : |
Subject: Re: [Boost-users] problem linking
From: Ed Keith (e_d_k_at_[hidden])
Date: 2010-04-20 19:30:52
Thanks,
I added the /MD flag, to link the CRT dynamically, and that solved the problem.
-EdK
Ed Keith
e_d_k_at_[hidden]
Blog: edkeith.blogspot.com
--- On Tue, 4/20/10, Igor R <boost.lists_at_[hidden]> wrote:
> From: Igor R <boost.lists_at_[hidden]>
> Subject: Re: [Boost-users] problem linking
> To: boost-users_at_[hidden]
> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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