How to build boost for msvc9.0 instead of msvc10.0?
Asked Answered
R

2

11

I've run the bootstrap batch and then the bjam exe, but as I have MSVC 2010 it generates the -vc100- files in the $boost\stage\lib.

I'm using vc90 libraries so I need the *-vc90-* files, but if I pass the --toolset=msvc-9.0 option to bjam, it gives me the following errors:

...failed compile-c-c++ bin.v2\libs\wave\build\msvc-9.0\release\link-static\threading-multi\instantiate_cpp_exprgrammar.obj...
compile-c-c++ bin.v2\libs\wave\build\msvc-9.0\release\link-static\threading-multi\instantiate_cpp_grammar.obj

that for each file.

(btw: if no option is specified, it generates the libs for the vc100 without problems)

Edited:
Adding the build.log here of the following command:

bjam --toolset=msvc-9.0 --with-filesystem >build.log 2>&1  

Anyone can help me? Thanks!

Roadhouse answered 19/2, 2011 at 21:55 Comment(0)
R
8

solved.

Just needed to add VC9 compiler path to the %PATH% system var.

Roadhouse answered 20/2, 2011 at 1:11 Comment(0)
V
12

When compiling with bjam, instead of only --toolset=msvc you can specify actual version like --toolset=msvc-9.0.

Vesicate answered 21/4, 2013 at 12:18 Comment(0)
R
8

solved.

Just needed to add VC9 compiler path to the %PATH% system var.

Roadhouse answered 20/2, 2011 at 1:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.