This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
In function `MAIN__' : undefined reference to
- From: zhu wang <zhuw at mail dot smu dot edu>
- To: gcc-help at gcc dot gnu dot org
- Date: 03 Sep 2003 22:54:59 -0500
- Subject: 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>