Re: [Mingw-users] linking to Fortran libraries from C fails
- Date: Thu, 20 Dec 2007 13:57:05 +0100
- From: Michael Gerdau <mgerdau@xxxxxxxxxx>
- Subject: Re: [Mingw-users] linking to Fortran libraries from C fails
> I am trying to get a library compiled under mingw/msys with gcc and g95, but configure retunrs the following error > > ng for g95... g95 > checking whether we are using the GNU Fortran compiler... yes > checking whether g95 accepts -g... yes > checking how to get verbose linking output from g95... -v > checking for Fortran libraries of g95... -Lc:/mingw/lib/gcc-lib/i686-pc-mingw32/4.0.3/ -Lc:/mingw/lib/gcc-lib/i686-pc-mingw32/4.0.3 -LC:/MinGW/lib// -LC:/MinGW/lib -LC:/MinGW/lib/gcc/mingw32/3.4.5// -LC:/MinGW/lib/gcc/mingw32/3.4.5 -Lc:/MinGW/lib/gcc-lib/i686-pc-mingw32/4.0.3// -Lc:/MinGW/lib/gcc-lib/i686-pc-mingw32/4.0.3 -L/mingw/lib// -L/mingw/lib -Lc:/mingw/lib/gcc-lib/i686-pc-mingw32/4.0.3/// -Lc:/msys/1.0/lib// -Lc:/msys/1.0/lib -lf95 -lm -lws2_32 -lmingw32 -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 > checking for dummy main to link with Fortran libraries... unknown > configure: error: linking to Fortran libraries from C fails > See `config.log' for more details. -------^^^^^^^^^^ Could you provide the relevant output of config.log ? Or even better look at it before and check whether it provides the relevant hints to solve this ? > Any ideas of what could be wrong? If works just fine on linux with the same compilers. In the line starting with 'checking for Fortran libraries of g95...' I see references to MinGW 3.4.5 (presumably the official version) as well as some MinGW 4.0.3 (not an official version). Apparently you are mixing libraries here. Not sure this is a problem but at least that looks suspicious. Best, Michael -- Michael Gerdau email: mgerdau@xxxxxxxxxx GPG-keys available on request or at public keyserver
Attachment:
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ MinGW-users mailing list MinGW-users@xxxxxxxxxxxxxxxxxxxxx You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users
- Follow-Ups:
- Re: [Mingw-users] linking to Fortran libraries from C fails
- From: Eduardo Mendes
- Re: [Mingw-users] linking to Fortran libraries from C fails
- References:
- [Mingw-users] combining two languages
- From: Robertson George
- [Mingw-users] linking to Fortran libraries from C fails
- From: Eduardo Mendes
- [Mingw-users] combining two languages
- Prev by Date: [Mingw-users] [BUG] - member is template<T>: ice in 4.2.1-sjlj (mingw32-2), bad compilation in 3.4.5
- Next by Date: Re: [Mingw-users] which GUI toolkit you recommend to work with mingw ?
- Previous by thread: [Mingw-users] linking to Fortran libraries from C fails
- Next by thread: Re: [Mingw-users] linking to Fortran libraries from C fails
- Index(es):