--- Nu Nix <[EMAIL PROTECTED]> schrieb: > saya mau coba code
optimization dgn contoh program di
> bawah ini:
> 
> #include<stdio.h>
> #include<math.h>
> int main(void)
> {
> double pi=M_PI;
> double pisqrt;
> long i;
>         for(i=1;i<10000000;i++){
>                 pisqrt=sqrt(pi);
>         }
>         return 0;
> }
> 
> Tapi boro-boro dach .. belum diapa2in udah error :
> $ gcc pisqrt.c -o pisqrt

library libmath musti dilink dengan nambah -lm

$ gcc pisqrt.c -o pisqrt -lm

ebs

> /tmp/ccXUQGM2.o: In function `main':
> /tmp/ccXUQGM2.o(.text+0x32): undefined reference to
> `sqrt'
> collect2: ld returned 1 exit status
> $


__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Sie brauchen mehr Speicher f�r Ihre E-Mails? - http://premiummail.yahoo.de

-- 
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3

Kirim email ke