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

From: "Vicente J. Botet Escriba" <vicente.botet@wanadoo.fr>

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

                <boost-build@lists.boost.org>

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

                Linux Cross-Compile using CodeSourcery GNU GCC

Message-ID: <4E8A4536.5020604@wanadoo.fr>

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 file

> 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 ...

 

Best

Vicente

 

bjam threadapi=pthread

 

Works perfectly thank you very much.

 

Alistair