Thread: Easy Question
View Single Post
Old 03-02-2003, 05:13 PM   #1 (permalink)
Ilya020
Techno Rat
 
Ilya020's Avatar
 
Join Date: Jan 2003
Location: San Diego
Posts: 559
Ilya020 is on a distinguished road
Send a message via AIM to Ilya020
Easy Question

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.
__________________
> SELECT * FROM users WHERE clue > 0
0 rows returned
Ilya020 is offline   Reply With Quote