Boost logo

Boost Testing :

Subject: Re: [Boost-testing] [bronf][mingw] pthreads not linked (was Re: [sandia][intel-linux] pthreads not linked)
From: frederic.bron_at_[hidden]
Date: 2008-12-12 14:03:05


boost-testing-bounces_at_[hidden] a écrit sur 12/12/2008 18:50:34 :

> Joaquin M Lopez Munoz wrote:
>
> > Vladimir Prus <vladimir <at> codesourcery.com> writes:
> >
> >>
> >> JOAQUIN M. LOPEZ MUÑOZ wrote:
> >>
> >> > Hi,
> >> >
> >> > Seems like in most or all Intel on Linux environments tested by Sandia
> >> > there are problems with Pthreads not being linked even though
> >> > a threading=multi model is specified by the test. See for instance:
> >> >
> >> > http://tinyurl.com/5pasmt
> >> >
> >> > Any clue what's going on? Thank you!
> >>
> >> I've just checked in a commit supposed to address this.
> >
> > Thank you, everything's working just fine now.
> > BTW, mingw seems to have the very same problem, as
> > suggested by, for instance, http://tinyurl.com/5khdwo
>
> There, I see
>
> -mthreads
>
> in the linker options, so it sounds like some mingw issue, not
> a Boost.Build issue. Anybody has any ideas?
>
> - Volodya

I am suprised that the linker asks for pthread functions because I used the following user-config.jam which should impose the win32 api (that's what I normally use in my programs and it works but I
never try to build dynamic libraries):

using gcc : mingw_3.4.4 : /usr/bin/g++ : <compilerflags>-mno-cygwin <compileflags>-DBOOST_WINDOWS_API <linkflags>-mno-cygwin ;

Frédéric 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.


Boost-testing list run by mbergal at meta-comm.com