Mein C-Compiler erkennt offenbar keine math. Funktionen, wie sin, cos, tan, sqrt etc. Beim Kompilieren folgendes Quelltextes:
#include <stdio.h> #include <stdlib.h> #include <math.h> int main() { double x=sqrt(9); printf ("%f",x); return 0; }
bekomme ich folgende Fehlermeldung:
paul@ubuntu:~$ make test -lm cc test.c -o test /tmp/ccMVt60k.o(.text+0x1a): In function `main': : undefined reference to `sqrt' collect2: ld returned 1 exit status make: *** [test] Fehler 1
libc6-dev ist installiert
habe dann noch dieses versucht:
apt-get install --reinstall libc6-dev
jedoch ohne Erfolg.
Und weiss jetzt nicht weiter... 😕
Für eine Antwort und womöglich Lösung dieses Problems wäre ich echt dankbar!
Paul