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]

In function `MAIN__' : undefined reference to


Dear helpers,

I am trying to compile some Fortran code, but I got the following error:

$g77 -o uneqm UNEQM.FOR

/tmp/ccovHZ8m.o(.text+0x60d): In function `MAIN__':
: undefined reference to `uneq_'
/tmp/ccovHZ8m.o(.text+0x690): In function `MAIN__':
: undefined reference to `dfault_'
/tmp/ccovHZ8m.o(.text+0x722): In function `MAIN__':
: undefined reference to `uneq_'
/tmp/ccovHZ8m.o(.text+0x739): In function `MAIN__':
: undefined reference to `optif_'
/tmp/ccovHZ8m.o(.text+0xa11): In function `MAIN__':
: undefined reference to `cspec_'
collect2: ld returned 1 exit status

I have the following gcc under Redhat linux 9.0
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

This is my first time to compile Fortran code. I have no clue about the
error.

Thank you very much.

-- 
zhu wang <zhuw@mail.smu.edu>


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