Boost logo

Boost Users :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2007-05-27 11:54:54


Rob Agar wrote:
> hi all,
>
> Apologies if this question has been asked a million times before, but
> having searched the archives and documentation I'm none the wiser.
>
> Basically the problem is this: the auto-linker is trying to link to the
> wrong boost::filesystem lib and I can't figure out out to fix it.
>
> The error from MS Visual Studio 2005 is "LINK : fatal error LNK1104:
> cannot open file 'libboost_filesystem-vc80-mt-gd-1_34.lib'". Fair
> enough because this file does not exist.
>
> I want it to use the dll import lib
> boost_filesystem-vc80-mt-gd-1_34.lib. This file does exist, and is in a
> directory on the MSVC lib search path, along with the matching dll.

It's trying to use the static lib instead of the dynamic one. The usual
cause of this is that you are using the static C++ runtime instead of
the dynamic one. Check your project settings.

> So the question is, how do I tell the auto-linker to link to the file I
> want, or if this is not possible, how do I switch off auto-linking?

Well I can't point you at the docs explaining this as we had them... All
I can point now is
<http://www.boost.org/libs/config/config.htm#user_settable>. And scroll
down to the *DYN_LINK and *NO_LIB settings.

> I would rather not recompile the boost libs if I can help it.

AFAIK doing the regular Boost compile produces the static libraries.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

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