Boost logo

Boost Users :

Subject: Re: [Boost-users] boost build and link problems
From: liamv7 (liamv7_at_[hidden])
Date: 2011-06-09 23:53:10

On 10 June 2011 12:40, Littlefield, Tyler <tyler_at_[hidden]> wrote:
> Hello all:
> I'm trying to use boost::asio in an app. I used the bootstrap.bat and then bjam to build and configure boost. I use the visual studio 2008 command prompt because when I run bootstrap.bat from the normal command prompt, I get:
> cl.exe - System Error
> The program can't start because mspdb100.dll is missing from your
> computer. Try reinstalling the program to fix this problem.
> the build is building vc100 libs, but when I try to build my app it's trying to link to vc90 libs. I am using 2008, so I am confused as to why this is working out to build vc100 libs. When I build:
> 1>LINK : fatal error LNK1104: cannot open file 'libboost_system-vc90-mt-gd-1_46_1.lib'
> so it looks like it's trying to link to vc90 libs when vc100 are all that's being built. Is there a way to get rid of this and build for vs 2008?

So you have managed to build bjam (maybe you just needed to run
VCVARSALL.BAT on your command line)?

To build the correct libraries you need to specify the toolset on the
bjam command line: --toolset=msvc-9.0

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at