building boost (regex) in mingw

Hi I'm trying to install boost regex library under mingw but I can't seem to succeed... the simple configure way does not work I've also tried bjam --build-dir=./tmp --toolset=gcc stage --with-regex but this does not create .a .so files, but only .lib files that I cannot use with mingw compiler... any help please? thanks in advance Lorenzo

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, Frédéric Bron boost-bounces@lists.boost.org a écrit sur 15/12/2008 23:22:45 :
Hi
I'm trying to install boost regex library under mingw but I can't seem to succeed...
the simple configure way does not work
I've also tried
bjam --build-dir=./tmp --toolset=gcc stage --with-regex
but this does not create .a .so files, but only .lib files that I cannot use with mingw compiler...
any help please?
thanks in advance Lorenzo
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
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.

frederic.bron@alcan.com 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 :-) thanks in advance Lorenzo

boost-bounces@lists.boost.org a écrit sur 15/12/2008 23:39:01 :
frederic.bron@alcan.com 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 (?). 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.

Thank you! I look forward to trying this way... it's a pity it is not documented in the boost site. Moreover, yesterday, I tried to use the regex library and headers of cygwin (the one installed with cygwin installation); but they only work for a small example, and not with a library I'm developing... well, it all gets compiled by passing some linker options, but then the program hangs at run-time (while it all works if I compile it from cygwin itself). cheers Lorenzo frederic.bron@alcan.com wrote:
boost-bounces@lists.boost.org a écrit sur 15/12/2008 23:39:01 :
frederic.bron@alcan.com 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 (?).
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.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

I never use the cygwin boost as it is only 1.33.0. I do not know how we could have a up to date version. Frédéric Bron boost-bounces@lists.boost.org a écrit sur 16/12/2008 10:09:36 :
Thank you!
I look forward to trying this way...
it's a pity it is not documented in the boost site.
Moreover, yesterday, I tried to use the regex library and headers of cygwin (the one installed with cygwin installation); but they only work for a small example, and not with a library I'm developing... well, it all gets compiled by passing some linker options, but then the program hangs at run-time (while it all works if I compile it from cygwin itself).
cheers Lorenzo
frederic.bron@alcan.com wrote:
boost-bounces@lists.boost.org a écrit sur 15/12/2008 23:39:01 :
frederic.bron@alcan.com 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
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 (?).
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
threading=multi runtime-link=shared threadapi=win32 --layout=system 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.
_______________________________________________ Unsubscribe & other changes: http://lists.boost. org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

well actually a few years ago I used to compile and install manually boost libraries in cygwin, and it used quite easy as far as I remember. I didn't know about the -mno-cygwin flag instead to build a version for mingw yesterday I tried the configure procedure with mingw but it didn't work... frederic.bron@alcan.com wrote:
I never use the cygwin boost as it is only 1.33.0. I do not know how we could have a up to date version.
Frédéric Bron
boost-bounces@lists.boost.org a écrit sur 16/12/2008 10:09:36 :
Thank you!
I look forward to trying this way...
it's a pity it is not documented in the boost site.
Moreover, yesterday, I tried to use the regex library and headers of cygwin (the one installed with cygwin installation); but they only work for a small example, and not with a library I'm developing... well, it all gets compiled by passing some linker options, but then the program hangs at run-time (while it all works if I compile it from cygwin itself).
cheers Lorenzo
boost-bounces@lists.boost.org a écrit sur 15/12/2008 23:39:01 :
frederic.bron@alcan.com 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
BJAM_CONFIG=-d2 -j2 -sNO_BZIP2=1 -sNO_ZLIB=1 link=static
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 (?).
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
frederic.bron@alcan.com wrote: that you have to change like this: threading=multi runtime-link=shared threadapi=win32 --layout=system 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. _______________________________________________ Unsubscribe & other changes: http://lists.boost. org/mailman/listinfo.cgi/boost
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

frederic.bron@alcan.com wrote:
boost-bounces@lists.boost.org a écrit sur 15/12/2008 23:39:01 :
frederic.bron@alcan.com 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)...

boost-bounces@lists.boost.org a écrit sur 16/12/2008 22:42:16 :
frederic.bron@alcan.com wrote:
boost-bounces@lists.boost.org a écrit sur 15/12/2008 23:39:01 :
frederic.bron@alcan.com 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. 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.

frederic.bron@alcan.com wrote:
boost-bounces@lists.boost.org a écrit sur 16/12/2008 22:42:16 :
boost-bounces@lists.boost.org a écrit sur 15/12/2008 23:39:01 :
frederic.bron@alcan.com 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
BJAM_CONFIG=-d2 -j2 -sNO_BZIP2=1 -sNO_ZLIB=1 link=static
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
frederic.bron@alcan.com wrote: that you have to change like this: threading=multi runtime-link=shared threadapi=win32 --layout=system 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?
It then worked when I compiled regex library as static... building it as dynamic produces a dll which g++ is not able to link with (it doesn't find the regex functions). The problem with /usr was actually due to the way msys handles that special directory (as I saw in the documentation). Just for curiosity: do you use the msys shell or do you use the dos command prompt to perform the compilation of your programs with mingw? Because now there seems to be a problem about the way msys shell handles command line arguments: --title="My title" is interpreted as --title=My title which is wrong thanks Lorenzo -- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino ICQ# lbetto, 16080134 (GNU/Linux User # 158233) HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com http://www.myspace.com/supertrouperabba BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com http://www.gnu.org/software/src-highlite http://www.gnu.org/software/gengetopt http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net

Just for curiosity: do you use the msys shell or do you use the dos command prompt to perform the compilation of your programs with mingw?
2 solutions: either from cygwin or from CodeBlocks which I think is similar to DOS. 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.

frederic.bron@alcan.com wrote:
Just for curiosity: do you use the msys shell or do you use the dos command prompt to perform the compilation of your programs with mingw?
2 solutions: either from cygwin or from CodeBlocks which I think is similar to DOS.
mh... I'm getting confused: mingw binaries can be used from cygwin? So you need to update the PATH to be sure the cygwin's binaries are not used, right? As for CodeBlocks, you mean the IDE http://www.codeblocks.org/? -- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino ICQ# lbetto, 16080134 (GNU/Linux User # 158233) HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com http://www.myspace.com/supertrouperabba BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com http://www.gnu.org/software/src-highlite http://www.gnu.org/software/gengetopt http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net

boost-bounces@lists.boost.org a écrit sur 18/12/2008 11:34:25 :
frederic.bron@alcan.com wrote:
Just for curiosity: do you use the msys shell or do you use the dos command prompt to perform the compilation of your programs with mingw?
2 solutions: either from cygwin or from CodeBlocks which I think
is similar to DOS.
mh... I'm getting confused: mingw binaries can be used from cygwin? So you need to update the PATH to be sure the cygwin's binaries are not used, right?
No, there is a version of gcc/g++ mingw included in cygwin. The only thing to do is to add the compile and link flag -mno-cygwin. Then you get binaries that are purely win32 binaries.
As for CodeBlocks, you mean the IDE http://www.codeblocks.org/?
Yes. I build boost with cygwin-mingw and I then compile my application with CodeBlocks which comes with a version of mingw (in fact a collegue of mine does that as he is not so familiar with shells, gdb...). 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.

frederic.bron@alcan.com wrote:
boost-bounces@lists.boost.org a écrit sur 18/12/2008 11:34:25 :
frederic.bron@alcan.com wrote:
Just for curiosity: do you use the msys shell or do you use the dos command prompt to perform the compilation of your programs with mingw? 2 solutions: either from cygwin or from CodeBlocks which I think is similar to DOS.
mh... I'm getting confused: mingw binaries can be used from cygwin? So you need to update the PATH to be sure the cygwin's binaries are not used, right?
No, there is a version of gcc/g++ mingw included in cygwin. The only thing to do is to add the compile and link flag -mno-cygwin. Then you get binaries that are purely win32 binaries.
Ah! I'll try that thanks again Lore -- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino ICQ# lbetto, 16080134 (GNU/Linux User # 158233) HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com http://www.myspace.com/supertrouperabba BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com http://www.gnu.org/software/src-highlite http://www.gnu.org/software/gengetopt http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net

Lorenzo Bettini wrote:
I've also tried
bjam --build-dir=./tmp --toolset=gcc stage --with-regex
but this does not create .a .so files, but only .lib files that I cannot use with mingw compiler...
Oh yes you can use them :-) For linking to the dll's, just pass the name of the dll on the linker command line, no need for a .a file at all. For static linking you can either pass the linker the full name of the .lib file, or else rename it to a .a extension so you can use -lboost_regex to link. HTH, John.

John Maddock wrote:
Lorenzo Bettini wrote:
I've also tried
bjam --build-dir=./tmp --toolset=gcc stage --with-regex
but this does not create .a .so files, but only .lib files that I cannot use with mingw compiler...
Oh yes you can use them :-)
For linking to the dll's, just pass the name of the dll on the linker command line, no need for a .a file at all. For static linking you can either pass the linker the full name of the .lib file, or else rename it to a .a extension so you can use -lboost_regex to link.
Well, actually I need to use my program and the libraries with autotools... would it work the same even with .dll and .lib?

Lorenzo Bettini wrote:
Well, actually I need to use my program and the libraries with autotools...
would it work the same even with .dll and .lib?
for the .dll yes I believe so: mingw will look for an appropriately named .dll when you use -lfoo and link straight to it without needing an intermediate .lib or .a file. John.

John Maddock wrote:
Lorenzo Bettini wrote:
Well, actually I need to use my program and the libraries with autotools...
would it work the same even with .dll and .lib?
for the .dll yes I believe so: mingw will look for an appropriately named .dll when you use -lfoo and link straight to it without needing an intermediate .lib or .a file.
I'll try to check this (since I had already built a "staged" regex library); I'm more concerned about libtool though about this, but again I'll have to try; yesterday it didn't work, but then I found out that it was all due to the fact that -lboost... was not given at the end of the command line (!)
participants (3)
-
frederic.bron@alcan.com
-
John Maddock
-
Lorenzo Bettini