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???