I was doing some tests when I noticed the following code wouldnt compile:
Code:
#include <stdio.h>
#include <math.h>
main()
{
double foo=sqrt(900.0);
printf("%.2f", foo);
return 0;
}
I am using gcc with Slackware 8.1. I asked a friend on a windows box also using gcc with Windows. It compiled fine on his and ran fine. What going on here?
Ilya.