Boost logo

Boost-Build :

Subject: Re: [Boost-build] Thread not compiling under Windows to ARM
From: Alistair Lowe (ali_lowe_at_[hidden])
Date: 2011-10-04 12:50:09

Date: Tue, 04 Oct 2011 01:28:54 +0200

From: "Vicente J. Botet Escriba" <vicente.botet_at_[hidden]>

To: "Boost.Build developer's and user's list"


Subject: Re: [Boost-build] Thread not compiling under Windows to ARM

                Linux Cross-Compile using CodeSourcery GNU GCC

Message-ID: <4E8A4536.5020604_at_[hidden]>

Content-Type: text/plain; charset=ISO-8859-1; format=flowed


Le 04/10/11 01:01, Alistair Lowe a ?crit :

> Hi guys,



> I'm now able to build most of the boost library in the above cross-compile

> configuration but I still receive the following errors preventing me from

> building the thread library:



> gcc.compile.c++

> bin.v2\libs\thread\build\gcc-arm\release\target-os-linux\threadi

> ng-multi\win32\thread.o

> libs\thread\src\win32\thread.cpp:13:21: fatal error: process.h: No such

> or

> directory

> compilation terminated.


> <snip>


> It appears to be related to the lack of a process.h header.


> Any ideas?


> Many thanks

> Alistair



Boost.thread is deducing the build platform is Windows so it tries to

use the windows includes. I don't know if you should be able to force

the Posix build using the threadapi build feature.


bjam threapapi=pthread ...





bjam threadapi=pthread


Works perfectly thank you very much.



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at