tags:

views:

820

answers:

2

I am trying to build a library (luabind) with bjam. I came across an error and it seems like the problem is that I need to compile with gcc 4.2, but the default on this computer (Mac OSX) is 4.0. I would prefer not to go around changing links in system directories, is there a way to specify to bjam to use gcc4.2 rather than just gcc?

+2  A: 

Try running bjam with these options:

--toolset=gcc --toolset-root=/path/to/gcc/4.2

Vijay Mathew
This syntax does not work, and actually never worked.
Vladimir Prus
+3  A: 

I think it's described in the documentation. You should have:

using gcc : 4.2 : g++-42 ;

in your user-config.jam and "bjam toolset=gcc-4.2" on the command line

Vladimir Prus