Compiling a sample c file takes forever on unix
Posted on 2006-04-04
I have a sample c file - test.c and I am compiling it on unix
and it is take forever and still working on it to just compile.
The command I typed in is:
% cc test.c
and the compiler I use is: /vol/opt/SUNWspro.new/bin/cc
and the file is:
float x, y, z, sum, avg;
printf("Please enter 3 numbers: ");
scanf("%f %f %f", &x, &y, &z);
sum = x + y + z;
avg = sum / 3.0;
printf("The average of the three numbers is: %f\n",avg);
Why isn't it just compile and give me a.out?
Also any good and free c compiler on Windows 2000/XP?