PDA

View Full Version : building boost


Gravedigger
05-14-2011, 02:55 PM
hi guys,

just downloaded the boost libraries and tried to build them with the included bootstrap.bat batch file. this kind of worked fine since all libraries have been created for my Visual Studio 2010 installation. However i'm using both Visual Studio 2010 and Visual Studio 2008 and now i would like to have the libraries created for for Visual Studio 2008 aswell.

i think it shouldn't be problematic to make Visual Studio 2008 to use the libraries created for VS2010 however the libraries are included automatically by boost using the prefix corresponding the the used VS version.

for example in VS2008 i get following error: libboost_thread-vc90-mt-1_46_1.lib
since in the lib directory in only have the vc10 version built.

so how can i get the libraries created for VS2008?

thanks a lot,
Patrik

Benr
05-20-2011, 03:31 AM
So if you are compiling using the commands:
bootstrap
.\bjam
You can pass a number of options to bjam. To specify VS2008, you would pass "toolset=msvc-9.0". You can also set debug vs release, static vs shared, 32 vs 64 bits etc. See:
http://www.boost.org/doc/libs/1_46_1/more/getting_started/windows.html

Of course if you only want 32 bit versions, then you can just get an installer here:
http://www.boostpro.com/download/

Gravedigger
05-20-2011, 12:50 PM
exactly what i needed!
thanks a lot ben!

CGTalk Moderation
05-20-2011, 12:50 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.