Re: Serious compiler problem

2004-11-09 Thread Sebastian Lövdahl
Martin Dickopp wrote:
Sebastian LÃvdahl <[EMAIL PROTECTED]> 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!

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Serious compiler problem

2004-11-08 Thread Martin Dickopp
Sebastian LÃvdahl <[EMAIL PROTECTED]> 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


-- 
   ,--.  ,= ,-_-. =.
  / ,- )Martin Dickopp, Dresden, Germany((_/)o o(\_))
  \ `-'http://www.zero-based.org/`-'(. .)`-'
   `-.   \_/



Re: Serious compiler problem

2004-11-08 Thread Joost Witteveen
Sebastian Lövdahl wrote:
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"
Well, if you have a simple file like:
$ cat > f.c
int h
#include 
Then trying to compile the file f.c, you'll get the error message you have.
Conclusion: somewhere before you include stddef.h, you have some syntax 
error (possibly a missing ";" as in the file f.c above).

--
Groetjes
joostje
47d3fcfe28f2a83497e79d9bc7d5087c-4a1ee1fddab4648175518cb4c1c9edb3ed0e89f0
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]