This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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"

Any help?

Mathew






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]