undefined reference to `lroundf'
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Oct 9 22:19:00 GMT 2009
On Fri, Oct 09, 2009 at 05:46:39PM -0400, kamaraju kusumanchi wrote:
> On Fri, Oct 9, 2009 at 12:12 PM, Steve Kargl
> <sgk@troutmask.apl.washington.edu> wrote:
> > On Fri, Oct 09, 2009 at 11:45:53AM -0400, kamaraju kusumanchi wrote:
> >>
> >> <munge1>/software/myroot/gcc-4.4-20090327/bin/gfortran -B
> >> <munge1>/software/myroot/binutils-2.19.1/bin rounding_01.f90
> >>
> >> /var/tmp//ccchhfJi.o: In function `MAIN__':
> >> rounding_01.f90:(.text+0xbc): undefined reference to `lroundf'
> >> rounding_01.f90:(.text+0x1b4): undefined reference to `lroundf'
> >> collect2: ld returned 1 exit status
> >>
> >>
> >> <munge1>/software/myroot/gcc-4.4-20090327/bin/gfortran -v
> >> Using built-in specs.
> >> Target: sparc-sun-solaris2.8
> >
> > Does libm on sparc-sun-solaris2.8 contain a lroundf function?
> >
>
> I do not know. Could you please tell me how to check for that?
>
nm libm.a | grep lround
or
grep lround /usr/include/math.h
--
Steve
More information about the Fortran
mailing list