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: In function `MAIN__' : undefined reference to


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)


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