On Jul 31, 2005, at 1:35 PM, sofia takayama wrote:
#include <stdio.h> #include <math.h> int main() { printf("cos(1)= %f \n", cos(1)); } After compile: undefined reference to "cos"
Link with -lm. -- Pinski
On Jul 31, 2005, at 1:35 PM, sofia takayama wrote:
#include <stdio.h> #include <math.h> int main() { printf("cos(1)= %f \n", cos(1)); } After compile: undefined reference to "cos"
Link with -lm. -- Pinski