This is the mail archive of the
mailing list for the GNU Fortran project.
errors linking to library
- From: Mathew Yeates <myeates at jpl dot nasa dot gov>
- To: fortran at gcc dot gnu dot org
- Date: Mon, 16 Oct 2006 11:44:32 -0700
- Subject: errors linking to library
I have a library I created with MSVC's lib.exe after compiling some
fortran objects with gfortran
lib.exe [fortran objects] /NODEFAULTLIB /OUT:mylib.lib libgfortran.a
When I try and link to this library with MSVC's link.exe after compiling
c code with cl.exe I get
a warning message
link.exe [ cobjects] libmingw32.a libmingwex.a libgcc.a mylib.lib
mylib.lib(unix.o) : warning LNK4217: locally defined symbol __iob
imported in function __gfortrani_flush_if_preconnected
Also, whenever an output statement is executed I get a fortran error.
"Fortran runtime error: End of record"