Boost logo

Boost Users :

Subject: Re: [Boost-users] Linking problem
From: Robert Ramey (ramey_at_[hidden])
Date: 2012-02-26 11:26:32


Johan Råde wrote:
> I built Boost with the command
>
> b2 toolset=msvc-10.0 address-model=32 link=static runtime-link=shared
> threading=multi stage
>
> I'm linking statically with Boost and dynamically with the CRT
> (compiler option /MD).

I think this is a problem. At one time attempting to do this
provoked an error message "... is really a bad idea". This is
because that portions of the CRT library would show up in
both the DLL (static link of library) and the application itself
which uses the DLL. For certain CRT functions which have
side effects this would be a problem. There might be some
other problems as well which I don't know about.

MSVC let's you do this - which is probably OK if you really
watch what you're doing. But I think boost library
creation either discourgages or prohibits this. Hence
the library that is being requested via auto-linking doesn't
exist and you get the error message.

Robert Ramey

>
> I get the error message
>
> LINK : fatal error LNK1104: cannot open file
> 'libboost_iostreams-vc100-mt-1_49.lib'
>
> What might the problem be?


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