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]

Re: errors linking to library


Here is what Microsoft says (http://msdn2.microsoft.com/en-us/library/aa3se25k.aspx) <http://msdn2.microsoft.com/en-us/library/aa3se25k.aspx%29>about the warning
"
locally defined symbol 'symbol' imported in function 'function'


__declspec(dllimport) <http://msdn2.microsoft.com/en-us/library/3y1sfaz2.aspx> was specified for a symbol even though the symbol is defined locally. Remove the *__declspec* modifier to resolve this warning.


"


FX Coudert wrote:
Hi,

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

Hum... no idea on that one.


Also, whenever an output statement is executed I get a fortran error.
"Fortran runtime error: End of record"

The following line causes a crash
write(6,*) 'Hello'

Is the output directed to STDOUT/STDERR, or to a file also opened by C code? In any of these case, try to output to a (different) file, and see if that fixes it.

FX




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