Re: In function `MAIN__' : undefined reference to

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have put all subroutines into a big file and now is better.

But I got the following error. What should I do?


f77 -o uneqm UNEQM.FOR
UNEQM.FOR: In subroutine `optif':
UNEQM.FOR:62: warning:
         call optif(nr,np,p,uneq,typx,typf,msg,ndigit,itnlim,ipr,
              1
UNEQM.FOR:1397: (continued):
         SUBROUTINE
OPTIF(NR,N,X,FCN,TYPSIZ,FSCALE,MSG,NDIGIT,ITNLIM,IPR,
                    2
Argument #15 (named `fpls') of `optif' is one precision at (2) but is
some other precision at (1) [info -f g77 M GLOBALS]

On Thu, 2003-09-04 at 16:02, zhu wang wrote:
> On Thu, 2003-09-04 at 15:23, Toon Moene wrote:
> > 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.
> 
> This is my first time to compile Fortran code. I got your point but still
> no clue how to do it. I can locate them but what should I do? Maybe
> somebody can take a look at those files. I know this maybe too much. 
> 
> Thanks,
> 
> Zhu Wang
> 
> > Hope this helps,
-- 
zhu wang <zhuw@xxxxxxxxxxxx>


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux