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

20040204: Udunits install on Linux Suse 8.2 - Solution



Paul,

>Date: Wed, 4 Feb 2004 07:41:03 +0100 (MET)
>From: Paul Della-Marta <address@hidden>
>Organization: University of Bern
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20040203: Udunits install on Linux Suse 8.2 - Solution 
>Keywords: 200402030902.i1392Zp1024285 UDUNITS SuSE Linux

The above message contained the following:

> I tested the first program 
> 
> int main()
>      {
>        (void)sin(0.0);
>        return 0;
>      }
> with c89 -0 conftest.c without reference to -lm
> 
> compiled no problem.
> 
> I tested the second program 
> 
>      int main()
>      {
>        return sin(0.0) != 0;
>      }
> 
> using c89 -0 conftest.c without reference to -lm, the compiled failed with
> this error
> 
> $ c89 -O conftest.c
> /tmp/ccWxm5zp.o(.text+0x11): In function `main':
> : undefined reference to `sin'
> collect2: ld returned 1 exit status

Excellent!.  I'll make this change to the UDUNITS package.

Thanks for all your help.

Regards,
Steve Emmerson