Return-Path: <boost-users-bounces@lists.boost.org>
Received: from n107.sc1.cp.net (64.97.168.12) by n059.sc1.cp.net (7.2.066)
	id 46564A60003BA058 for boost.regex@virgin.net;
	Wed, 27 Jun 2007 15:56:42 +0000
Received: from moutng.kundenserver.de (212.227.126.174) by n107.sc1.cp.net
	(7.2.069.1) id 468219070003BE09 for boost.regex@virgin.net;
	Wed, 27 Jun 2007 15:56:41 +0000
Received-SPF: none (mxeu25: 129.79.245.252 is neither permitted nor denied by
	domain of lists.boost.org) client-ip=129.79.245.252;
	envelope-from=boost-users-bounces@lists.boost.org;
	helo=wowbagger.osl.iu.edu; 
Received: from [129.79.245.252] (helo=wowbagger.osl.iu.edu)
	by mx.kundenserver.de (node=mxeu25) with ESMTP (Nemesis),
	id 0MKstg-1I3Zsm2XVQ-000445 for john@johnmaddock.co.uk;
	Wed, 27 Jun 2007 17:56:41 +0200
Received: from wowbagger.osl.iu.edu (localhost [127.0.0.1])
	by wowbagger.osl.iu.edu (Postfix) with ESMTP id AE82B2F8273;
	Wed, 27 Jun 2007 11:56:30 -0400 (EDT)
X-Original-To: boost-users@lists.boost.org
Delivered-To: boost-users@lists.boost.org
Received: from hj4relp02.fr2.usf.ihost.com (hj4pivp01.fr2.usf.ihost.com
	[129.35.165.233])
	by wowbagger.osl.iu.edu (Postfix) with ESMTP id 7737A2F8115
	for <boost-users@lists.boost.org>; Wed, 27 Jun 2007 11:55:46 -0400 (EDT)
To: boost-users@lists.boost.org
Message-ID: <OF06FA43D6.94A5B1C8-ONC1257307.0056AE7D-C1257307.00578048@alcan.com>
From: frederic.bron@alcan.com
Date: Wed, 27 Jun 2007 17:55:44 +0200
MIME-Version: 1.0
Subject: [Boost-users] troubles linking with boost_regex
X-BeenThere: boost-users@lists.boost.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: boost-users@lists.boost.org
List-Id: Boost Users mailing list <boost-users.lists.boost.org>
List-Unsubscribe: <http://lists.boost.org/mailman/listinfo.cgi/boost-users>,
	<mailto:boost-users-request@lists.boost.org?subject=unsubscribe>
List-Archive: <http://lists.boost.org/MailArchives/boost-users>
List-Post: <mailto:boost-users@lists.boost.org>
List-Help: <mailto:boost-users-request@lists.boost.org?subject=help>
List-Subscribe: <http://lists.boost.org/mailman/listinfo.cgi/boost-users>,
	<mailto:boost-users-request@lists.boost.org?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: boost-users-bounces@lists.boost.org
Errors-To: boost-users-bounces@lists.boost.org




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=3Dstatic threading=3Dsingle=
 runtime-link=3Dshared --toolset=3Dgcc-nocygwin --prefix=3D"D:\Softs\boost_=
msw" --layout=3Dsystem 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 re=
gex library:
/cygdrive/d/Softs/boost_msw/lib/libboost_regex.a(static_mutex.o):static_mut=
ex.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_mut=
ex.cpp:(.text+0x54): r'ef'erence ind'efinie vers << _pthread_mutex_lock >>
/cygdrive/d/Softs/boost_msw/lib/libboost_regex.a(static_mutex.o):static_mut=
ex.cpp:(.text+0x84): r'ef'erence ind'efinie vers << _pthread_mutex_lock >>
/cygdrive/d/Softs/boost_msw/lib/libboost_regex.a(static_mutex.o):static_mut=
ex.cpp:(.text+0xaa): r'ef'erence ind'efinie vers << _pthread_mutex_unlock >>
/cygdrive/d/Softs/boost_msw/lib/libboost_regex.a(static_mutex.o):static_mut=
ex.cpp:(.text+0xda): r'ef'erence ind'efinie vers << _pthread_mutex_unlock >>
/cygdrive/d/Softs/boost_msw/lib/libboost_regex.a(static_mutex.o):static_mut=
ex.cpp:(.text+0x10a): r'ef'erence ind'efinie vers << _pthread_mutex_unlock =
>>

This does not happen when I link a program that uses only filesystem with t=
he filesystem library.
Also when I use boost libraries built for cygwin environnement (configure;m=
ake install), I have no problem linking with regex.

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

Regards

F. Bron

Avis :
Ce message et toute pi=E8ce jointe sont la propri=E9t=E9 d'Alcan et sont de=
stin=E9s seulement aux personnes ou =E0 l'entit=E9 =E0 qui le message est a=
dress=E9. Si vous avez re=E7u ce message par erreur, veuillez le
d=E9truire et en aviser l'exp=E9diteur par courriel. Si vous n'=EAtes pas l=
e destinataire du message, vous n'=EAtes pas autoris=E9 =E0 utiliser, =E0 c=
opier ou =E0 divulguer le contenu du message ou ses pi=E8ces 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 addresse=
d. 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 co=
ntents or attachments in whole or in part.

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

