Andry Susanto wrote:
> 
> Hallo,
> 
> Sebelumnya saya pernah tanya soal function floor di
> uc-libc, dan saya sudah include math.h.
> Waktu compile dibilang implicit declaration. Dan saya
> lihat uc-libc/include/math.h isinya kosong, ukuran
> file-nya 0 byte.
> Ada yang tahu dimana bisa dapatkan library math untuk
> uc-libc?

Ngak usah repot2

#include <stdio.h>
extern double floor(double);

int main(void)
{
        printf("%lf", floor(2.511));
        exit 0;
}

$ ucc foo.c -o foo -lm

Kalau jalan berarti anda sudah punya mathlib, headernya saja
yang gak benar (atau include pathnya salah).

-- 
+-R-| Netscape Communicator 4.x |-H-| Powered by Linux 2.4.x |-7-+
|/v\ Agus Budy Wuysang                   MIS Department          |
| |  Phone:  +62-21-344-1316 ext 317     GSM: +62-816-1972-051   |
+--------| http://www.rad.net.id/users/personal/s/supes |--------+

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

Kirim email ke