Boost logo

Boost Users :

Subject: Re: [Boost-users] Specifying Compiler when invoking
From: Michalke, Simon (simon.michalke_at_[hidden])
Date: 2018-08-20 06:34:22

Am 2018-08-07 16:20, schrieb Michalke, Simon:
> Am 2018-08-07 16:01, schrieb Mateusz Loskot via Boost-users:
>> On 7 August 2018 at 15:18, Michalke, Simon via Boost-users
>> <boost-users_at_[hidden]> wrote:
>>> Hello all,
>>> simple question:
>>> How do I specify the compiler that will be used to compile boost
>>> directly?
>>> I would like to provide the whole path.
>> Typically, you pass name of recognised/known toolset via command line
>> But, I doubt/don't know you can pass full path.
>> Instead, you can try to specify the special `cc` toolset and
>> point to your compiler via the CC environment variable:
>> Best regards,
> Hello,
> the second solution seems to be the correct one. Although I get error
> messages that tell me paths are missing. Guess I will have to provide
> some more env vars then. I'll figure those out, thank you very much
> for the help!
> Regards,
> Simon


I cannot get it working. My boostrap.log log shows me stuff like this

builtins.c:58:11: fatal error: sys/wait.h: No such file or directory
  # include <sys/wait.h>
compilation terminated.

My bootstrap line is:
env CC=/usr/bin/x86_64-w64-mingw32-gcc ./
--without-libraries=python --prefix=[...] --with-toolset=cc
target-os=windows architecture=x86 address-model=64

I tried to specify the include path with
CXX=/usr/bin/x86_64-w64-mingw32-g++ (which does contain the correct
sys/wait.h) but that did not work as well.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at