gcc on 9.1 include problem
I just installed Slackware 9.1 on my desktop machine, to do some development. I installed the entire development distribution set. After installing, I wrote a simple hello world program to test everything:
#include <stdio.h>
void main(void) {
printf("Hello World\n");
}
But when i do : gcc -o test test.c I get a screenful of parse errors from stdio.h all like this:
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:360 syntax error before "extern"
and about fifty more lines like it with slightly different syntax errors. Anybody know what I'm doing wrong or is there something I need to do to fix gcc?
|