[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Compilation problem



Gauri wrote on 01/03/2005 08:42:

I am a newbie and trying to compile a code on FC3 with kernel 2.6.9 and gcc version 3.4.2.

The code gives me following errors –

/usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h:213: error: syntax error before "typedef"

/usr/include/stdio.h:46: error: syntax error before "typedef"

/usr/include/stdio.h:62: error: syntax error before "typedef"


etc. etc.


Either you've got some random characters in your code before your include these header files, or you're using gcc rather than g++ (or visa-versa) to compile it.
Without seeing your code/makefile/compilation directives it'll be difficult to help further.


Rob


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]