hallo entwickler,
habe hier ein kleines testprogramm, dass fehlende math-funktionen
anmeckert.
---cut---
#include
#include
void main (void)
{
printf ("%f", cos (3.14159));
}
---cut---
beim kompilieren passiert folgendes:
inz2cl01:/tmp # cc test.c
test.c: In function `main':
test.c:4: warning: return type of `main' is not `int'
/tmp/cchNWbWz.o: In function `main':
/tmp/cchNWbWz.o(.text+0xe): undefined reference to `cos'
collect2: ld returned 1 exit status
inz2cl01:/tmp #
undefined reference to `cos ??
die headerdatei "math.h" ist aber in /usr/include vorhanden ?
das eigentliche programm, dass ich kompilieren will ist für os/2
geschrieben. obiges testprog hat mit diesem nichts zu tun. das ist
lediglich zur isolierung des fehlers gedacht.
kann mir jemand nen tipp geben ?
gruss und vielen dank !
matthias
---------------------------------------------------------------------
To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com
For additional commands, e-mail: suse-linux-help@suse.com