
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