Boost logo

Boost Users :

From: frederic.bron_at_[hidden]
Date: 2007-06-29 14:31:40


As you may have seen in later post, I have found a solution: I run configure and then add <cflags>-mno-cygwin in user-config.jam before running bjam. I do not use anymore Windows bjam but cygwin bjam.
Thanks,

F. Bron
___________________________________
Frédéric Bron (frederic.bron_at_[hidden])
Unité ALT, Alcan CRV, BP 27, 38341 Voreppe
téléphone : +33 4 76 57 81 72
télécopie : +33 4 76 57 80 99

                                                                                                                                                                               
                      "John Maddock"
                      <john_at_[hidden]> Pour : <boost-users_at_[hidden]>
                      Envoyé par : cc : (ccc : Frederic Bron/Alcan)
                      boost-users-bounces_at_list Objet : Re: [Boost-users] troubles linking with boost_regex
                      s.boost.org
                                                                                                                                                                               
                                                                                                                                                                               
                      29/06/2007 20:06
                      Veuillez répondre à
                      boost-users
                                                                                                                                                                               

frederic.bron_at_[hidden] wrote:
> I am using boost 1.34.0
> I have built the boost libraries from cygwin but for no-cygwin
> environment (pure win32, independant from cygwin):
> - I have built bjam with: ./build.bat gcc-nocygwin
> - I have used bjam like this: path/to/bjam link=static
> threading=single runtime-link=shared --toolset=gcc-nocygwin
> --prefix="D:\Softs\boost_msw" --layout=system release install
> - I then use g++ with -mno-cygwin flag to compile and link
>
> Here is the trouble I get when I link a program that uses regex with
> the regex library:
> /cygdrive/d/Softs/boost_msw/lib/libboost_regex.a(static_mutex.o):static_mutex.cpp:(.text+0x1a):
> r'ef'erence ind'efinie vers << _pthread_mutex_lock >>
> /cygdrive/d/Softs/boost_msw/lib/libboost_regex.a(static_mutex.o):static_mutex.cpp:(.text+0x54):

> I have tried with threading=multi but obtained the same results.
> Maybe I should build the no-cygwin libraries totally outside cygwin,
> i.e. with a standalone compiler?
> Any tricks?

threading=multi is the default, and the cause of the error messages: the
regex lib is expecting a pthread lib. Try threading=single, or else build
with regular Mingw which I know does work :-)

Looks like a configuration issue: we should be using Win32 threads when
building with Cygwin and -mno-cygwin. I'll look into that when I get a
chance.

John.

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users

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-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net