errors linking to library
Mathew Yeates
myeates@jpl.nasa.gov
Mon Oct 16 19:36:00 GMT 2006
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"
Any help?
Mathew
More information about the Fortran
mailing list