Web lists-archives.org

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