This is one of the conditions in my program:
if(Debug)fprintf(stdout,"Direction dir %d quot %d rem %0.2f %s\n",direction,quotient, remain, cardinal[quotient]);
I have defined everything and have used stdlib.h but it keeps returning
expected expression before ')' token
I use minGW compiler in ECLIPSE. Compiled as follows: gcc -O0 -g3 -Wall -c -fmessage-length=0 -o wind_direction.o "..\\wind_direction.c"
probably you have:
With is good for conditional compilation:
But the if need an expression inside the (). Use, for example:
if you want to print, and
0if you dont want. (but now use#if Debugfor conditional compilation)