C
Chad
I'm not too sure if the question would fall under comp.lang.c or some
kind of compiler newsgroup. I'm going to ask anyhow.
Given the following:
#include <stdio.h>
int main(void) {
int a = 0;
if(a == 0) {
fprintf(stderr, "exiting \n");
}
int b = 2;
return 0;
}
This will compile with no syntax errors on Suse Linux 9.1 using the gnu
compiler. However, when I try to compile this under FreeBSD 4.8 using
the gnu compiler, I get the following error message:
$gcc -g iffy.c -o iffy
iffy.c: In function `main':
iffy.c:9: syntax error before `int'
What is going on here?
Thanks in advance.
Chad
kind of compiler newsgroup. I'm going to ask anyhow.
Given the following:
#include <stdio.h>
int main(void) {
int a = 0;
if(a == 0) {
fprintf(stderr, "exiting \n");
}
int b = 2;
return 0;
}
This will compile with no syntax errors on Suse Linux 9.1 using the gnu
compiler. However, when I try to compile this under FreeBSD 4.8 using
the gnu compiler, I get the following error message:
$gcc -g iffy.c -o iffy
iffy.c: In function `main':
iffy.c:9: syntax error before `int'
What is going on here?
Thanks in advance.
Chad