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

  • math.h sofia takayama
    • Re: math.h Andrew Pinski

Reply via email to