David Bowskill wrote:

>  As a member of SLUG, would an expert in 'C' please help me with this 
> problem.

We even help (when we can) people who aren't members of SLUG.

> I am using GCC  (Xandros V4) and when I try to compile a program I get 
> this error message
> There are no other syntax errors flagged

What version of GCC? The command "gcc -v" will tell you.

Did you compile it youself or did you get it as part of the distribution?
 
> */usr/lib/gcc-lib/i486-linux/3.3.5/include/stddef.h:213: error: syntax 
> error before "typedef"*
> 
> Below is the file  /usr/lib/gcc-lib/i486-linux/3.3.5/include/stddef.h  
> with an arrow pointing to line  213  in large print and in blue

Blue? Email is black text on a white background for me. I know some
that prefer white text on a blac background.

Unfortunately this problem is very difficult to debug by just looking
at the code.

What is it you are trying to compile?

Trying compiling a minmal C program like this:

    #include <stddef.h>
    int main (void) { return 0 ; }

If that still fails compile the same program with:

    gcc -E minimal.c > minimal.e

and then put the output file on a web server soemwhere and post a link.

HTH,
Erik

-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"It seems you are presuming a Waterfall model of development here. We're not
doing the Waterfall, we're doing the Whirlpool." -- Larry Wall on Perl6
"Perl is circling the drain, that's for sure..." --  llimllibon reddit
_______________________________________________
coders mailing list
[email protected]
http://lists.slug.org.au/listinfo/coders

Reply via email to