Change the GCC version used by bjam

I am trying to create a library (luabind) using bjam. I ran into an error, and there seems to be a problem 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 follow the change of links in system directories, is there a way to tell bjam to use gcc4.2 rather than just gcc?

+3
source share
2 answers

I think he described in the documentation . You must have:

using gcc : 4.2 : g++-42 ;

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

+5
source

Try running bjam with these parameters:

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

+1

Source: https://habr.com/ru/post/1715983/


All Articles