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

Re: Serious compiler problem



Martin Dickopp wrote:

Sebastian Lövdahl <sebastian.lovdahl@pp.inet.fi> writes:

Hello! I have a very big problem with GCC (maybe this is wrong thread,
but maybe it isn't GCC related at all). When I try to compile a specific
file, GCC gives me this:

In file included from globals.h:11,
                from main.c:19:
/usr/lib/gcc-lib/i486-linux/3.3.4/include/stddef.h:151: error: syntax
error before "typedef"

I have *no* clue why this happened, I just edited the file (main.c),
saved it, and tried to compile again, and it suddenly gave me this. It's
not the first time, it happened on another machine too (completly
different). All help is appreciated*.

Please show us the relevant files (main.c, globals.h; if they are too
long to post them completely, post them up to and including lines 19, 11
where the error occurs) and tell us the exact command line you have used
to invoke gcc.

Martin


After a check, I found it was a bad comment who caused this. Without your help I had not found it :) Thank you!



Reply to: