This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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