Build 32 and 64 bit libraries for boost at sametime?

PopcornKing picture PopcornKing · Feb 1, 2012 · Viewed 23.6k times · Source

Will the option "--address-model=32,64" build both 32 and 64 libraries or do you have to do two separate builds?

Answer

GrafikRobot picture GrafikRobot · Feb 2, 2012

Doing:

b2 address-model=32,64

Or..

b2 address-model=32,64,32_64

Work and produces, depending on toolset and platform support, both 32 and 64 bit targets in the first case. And 32, 64, and 32+64 universal targets (most likely only on OSX using the darwin toolset. And by "works" I mean that I just tried it with my Boost library on OSX with the darwin toolset. Hence I suspect you have your syntax wrong, i.e. don't use "--name=values" as they are not options, but instead use "name=values" are the are requirement specifications.