|
ZL2BSJ > LINUX 06.08.03 18:22l 26 Lines 380 Bytes #999 (0) @ WW
BID : 22108_ZL2WA
Read: GUEST DB0FHN DL7NDR
Subj: Re: GCC 2.95.3 - double sin(double x)
Path: DB0FHN<DB0RGB<DB0MRW<DB0FOR<DB0SIF<DB0EA<DB0RES<ON0AR<ZL2BAU<ZL2BAU<
ZL2WA
Sent: 030806/1527Z @:ZL2WA.#60.NZL.OC #:22108 [NZ] FBB7.00g25 $:22108_ZL2WA
From: ZL2BSJ@ZL2WA.#60.NZL.OC
To : LINUX@WW
PMVIEW 0.1 - Linux 2.4.21 - Wed Aug 6 15:27:52 2003 UTC
>gcc -o s s.c
>collect2: ld returned 1 exit status
>make: *** [all] Error 1
>
Have a look at the GCC Howto:
Interrogating libraries (`which library is sin() in?')
The function hides in libm.so
You need to link against it with:
gcc -lm s.c
73,
Wilbert, ZL2BSJ
Read previous mail | Read next mail
| |