|
Boost-Build : |
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2007-10-14 05:08:36
"Vladimir Prus" <ghost_at_[hidden]> wrote in message
news:200710141210.24316.ghost_at_cs.msu.su...
> If you want to have tow gcc versions, you need to configure them
> in user-config.jam, given two different versions to them and specifying
> different commands, like:
>
> using gcc : XXX : /path/to/cygwin/g++ ;
> using gcc : XXX_mingw : /path/to/mingw/g++ ;
I've tried to add following line in user-config:
using gcc : mingw : "C:/Compilers/msys/1.0/bin/g++.exe" ;
Here is bjam invocation: "bjam toolset=gcc-mingw unit_test_example_01"
Here is an output
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(don't panic: this is a strictly optional feature).
...patience...
...found 539 targets...
...updating 23 targets...
gcc.compile.c++
..\..\..\bin.v2\libs\test\example\unit_test_example_01.test\gcc-mingw-mingw\debug\unit_test_example_01.o
g++.exe: g++: No such file or directory
"C:/Compilers/msys/1.0/bin/g++.exe"
"g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -DBOOST_ALL_NO_LIB=1 -DBOOST_TEST_
DYN_LINK=1 -DBOOST_TEST_NO_AUTO_LINK=1 -I"..\..\.." -c -o
"..\..\..\bin.v2\libs\test\example\unit_test_example_01.test\gcc-ming
w-mingw\debug\unit_test_example_01.o" "unit_test_example_01.cpp"
...failed gcc.compile.c++
..\..\..\bin.v2\libs\test\example\unit_test_example_01.test\gcc-mingw-mingw\debug\unit_test_example_01
.o...
...removing
..\..\..\bin.v2\libs\test\example\unit_test_example_01.test\gcc-mingw-mingw\debug\unit_test_example_01.o
Two things:
1. Why gcc-mingw-mingw?
2. Why does it adds g++ to the command line?
Gennadiy
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk