Zdravim, mam taky problem, v projekte mam normalne
Kód:
#include <math.h>
, prekladam takto:
Kód:
proj2: proj2.c
gcc -std=c99 -Wall -pedantic -g -lm proj2.c -o proj2
a v kode mam pouzitu funkciu sqrt :
Kód:
cast = sqrt(((x - stare_x)*(x - stare_x)) + ((y - stare_y)*(y - stare_y)));
Hadze mi to tuto chybu : ...undefined reference to `sqrt'
Hladala som na nete cim to je, ale vsade bol ten problem, ze nepouzili -lm, ale ja ho tam mam, tak preco to nejde?
