Boost logo

Boost Users :

Subject: Re: [Boost-users] Linker warning LNK4217: locally defined symbol _ imported in function _
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-10-17 17:48:28


AMDG

Yang Zhang wrote:
> OK, I learned about auto_link and the #pragma's in the headers that
> automagically locate the correct .lib, but they aren't working. The
> linker now complains about not being able to find
> libboost_program_options-vc90-mt-s-1_40.lib, whereas I have only
> *-vc100-* - strange, since I built boost from the exact same (Visual C
> 9.0) terminal window right before trying to build my app. The specific
> error is:
>
> LINK : fatal error LNK1104: cannot open file
> 'libboost_program_options-vc90-mt-s-1_40.lib'
>
> Any ideas? Thanks in advance.
>

If you didn't specify a version of msvc when you built Boost,
Boost.Build default to the most recent version it can
find in the registry. It does not use your environment
to determine which compiler to use. Try building with
bjam ... toolset=msvc-9.0

In Christ,
Steven Watanabe


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