frederic.bron | 5 Jul 14:11
Favicon

[Threads] how to cross-compile boost.threads from cygwin to target win32?


I have been using boost with success since 1 year on the following systems:
1) cygwin built with cygwin gcc/g++,
2) win32 built with cygwin gcc/g++ with -mno-cygwin flag,
3) linux built with both gcc/g++ or intel compiler.

I now want to use boost.threads and I have discovered that the library was not automatically built for
system 2), i.e. win32. How can I force bjam to compile for the target win32 using windows threads
instead of cygwin pthread?
It seems that there are some bjam options like target-os and threadapi but I could not get any documentation
for it. What is the list of possible target-os or threadapi values?

Regards,

F. Bron

Avis :
Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou
à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le
détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous
n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes
en tout ou en partie.

Notice:
This message and any attachments are the property of Alcan and are intended solely for the named recipients
or entity to whom this message is addressed. If you have received this message in error
please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are
not allowed to use, copy or disclose the contents or attachments in whole or in part.
Andrej van der Zee | 5 Jul 14:39

Re: [Threads] how to cross-compile boost.threads from cygwin to target win32?

Hi,

You can use "bjam threadapi=win32".

Greets,
Andrej

--- frederic.bron <at> alcan.com wrote:

> 
> 
> 
> I have been using boost with success since 1 year on
> the following systems:
> 1) cygwin built with cygwin gcc/g++,
> 2) win32 built with cygwin gcc/g++ with -mno-cygwin
> flag,
> 3) linux built with both gcc/g++ or intel compiler.
> 
> I now want to use boost.threads and I have
> discovered that the library was not automatically
> built for system 2), i.e. win32. How can I force
> bjam to compile for the target win32 using windows
> threads
> instead of cygwin pthread?
> It seems that there are some bjam options like
> target-os and threadapi but I could not get any
> documentation for it. What is the list of possible
> target-os or threadapi values?
> 
(Continue reading)

frederic.bron | 5 Jul 20:41
Favicon

Re: [Threads] how to cross-compile boost.threads from cygwin to target win32?


Works fine, thanks!
Any idea why is the library file name is libboost_thread_win32-mt.a and not libboost_thread-mt.a?
I am using the bjam flag --layout=system.

F. Bron

> You can use "bjam threadapi=win32".
> >
> > I now want to use boost.threads and I have
> > discovered that the library was not automatically
> > built for system 2), i.e. win32. How can I force
> > bjam to compile for the target win32 using windows
> > threads
> > instead of cygwin pthread?
> > It seems that there are some bjam options like
> > target-os and threadapi but I could not get any
> > documentation for it. What is the list of possible
> > target-os or threadapi values?

Avis :
Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou
à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le
détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous
n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes
en tout ou en partie.

Notice:
This message and any attachments are the property of Alcan and are intended solely for the named recipients
or entity to whom this message is addressed. If you have received this message in error
(Continue reading)


Gmane