Boost logo

Boost :

Subject: Re: [boost] RE building boost (regex) in mingw
From: frederic.bron_at_[hidden]
Date: 2008-12-17 00:09:37

boost-bounces_at_[hidden] a écrit sur 16/12/2008 22:42:16 :

> frederic.bron_at_[hidden] wrote:
> >
> > boost-bounces_at_[hidden] a écrit sur 15/12/2008 23:39:01 :
> >
> >> frederic.bron_at_[hidden] wrote:
> >>> I have no problem building regex with mingw provided by cygwin
> >> (g++ with option -mno-cygwin). If you are interested this way, I can help.
> >>> Regards,
> >>>
> >> Actually, I already have cygwin (and always used boost with that without
> >> any problem); so I should build boost regex for mingw using cygwin?
> >>
> >> any help is more than welcome :-)
> >
> > OK, this what I do to build 1.37.0 for win32 from cygwin:
> >
> > $ ./configure --with-libraries=regex --prefix=/cygdrive/d/Softs/boost_msw
> > This builds bjam and write a default user-config.jam and Makefile
> that you have to change like this:
> >
> > BJAM_CONFIG=-d2 -j2 -sNO_BZIP2=1 -sNO_ZLIB=1 link=static
> threading=multi runtime-link=shared threadapi=win32 --layout=system
> > LIBS=--with-regex release
> >
> > in user-config.jam replace "using gcc ;" by: "using gcc : : :
> <compileflags>-DBOOST_WINDOWS_API <compileflags>-mno-cygwin
> <linkflags>-mno-cygwin ;"
> >
> > You can then build boost with
> > $ make install >& install.log
> >
> >
> > This will build regex and install the headers. Headers and .a will
> be in /cygdrive/d/Softs/boost_msw which you can adapt to your needs.
> >
> > I you also want dynamic labraries, you can just remove link=static (?).
> mhh... the compilation and installation seemed to work fine... but I
> can't seem to use it from the msys shell: it does not see any header,
> and it keeps on seeing as /usr just / ... probably msys installation is
> messed up with mingw? I have no past experience with mingw (and when I
> port programs on windows I've always used cygwin)...

What does not work? I do the compilation like this for a collegue who then compile using CodeBlocks+included mingw so I think building boost from cygwin and using it with mingw works. Did you give all
paths (windows paths) to mingw?

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.

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 list run by bdawes at, gregod at, cpdaniel at, john at