Ahoj mam problem s nasledujicim kodem:
#include <math.h>
int main(int argc, char** argv) {
double radians = 45 * M_PI / 180;
double result;
result = cos(radians);
return (0);
}
Hazi to chybu: main.c:12: undefined reference to `cos'
pokud to prepisu na napr:
result = cos(1.0);
tak vse funguje. Co s tim proboha je???
TIP: Přetáhni ikonu na hlavní panel pro připnutí webu



Nahlásit jako SPAM
IP: 95.85.240.–
Grafoman
Stálý člen
Guru
Zjistit počet nových příspěvků
































