This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: Code compilation with GCC and GFORTRAN


On 5/21/2010 4:58 AM, Muhammad Akbar wrote:
OK, to gcc-help it is. For some reason my mails sent from gmail were
bouncing back...

Nothing to do with the incessant stream of spam from gmail?

$ gfortran -O -Wall -pedantic -DLINUX -fdefault-real-8 -ffree-line-length-132 m
a.f90 ma.c
Error: Unexpected end of file in 'ma.f90'
ma.c: In function `getkey_':
ma.c:31: warning: integer constant is too large for `long' type
ma.c:31: warning: overflow in implicit constant conversion


then, with the end of file error patched over:
/tmp/cczoyg8x.o:ma.f90:(.text+0x217): undefined reference to `_error_'
/usr/lib/gcc/i686-pc-cygwin/4.3.4/libgfortranbegin.a(fmain.o): In function `main
':
/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4/libgfortran/fmain
.c:21: undefined reference to `_MAIN__'


There's certainly a question why you don't use interoperable data types, and a suspicion that you may not even have set up your Fortran interfaces correctly, since you don't want to show it, and you seem to have a habit of not specifying them.


-- Tim Prince


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