This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: In function `MAIN__' : undefined reference to
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: zhu wang <zhuw at mail dot smu dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 04 Sep 2003 22:23:51 +0200
- Subject: Re: In function `MAIN__' : undefined reference to
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <1062647698.4231.5.camel@zwang.stat.smu.edu>
zhu wang wrote:
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
There are some routines (with names UNEQ, DFAULT, OPTIF, CSPEC) that are
not included in UNEQM.FOR, but used by it. Try to locate the source for
them and compile it in combination wiht UNEQM.FOR.
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc-g95.sourceforge.net/ (under construction)