[clug] Strange glibc error.

Paul Warren u3292467 at student.anu.edu.au
Fri Jun 27 16:08:29 EST 2003


Hi there.
I'm having trouble with compiling a program I wrote for part of an
assignment.

It compiled fine on the UNI's Solaris systems. and until recently
compiled fine on my Duron/Linux From Scatch box.  But today, after doing
 I don't know what.  I get this error:

[15:58:26] pwarren at molly ~/UNI/comp3320/ass1 $ make md_opt
cc -pipe -O2 -march=athlon-xp -fomit-frame-pointer -s -mfpmath=sse,387
-lm md_opt.c -o md_opt
In file included from /usr/include/stdio.h:34,
                 from md_opt.c:22:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/stddef.h:201: syntax
error before "typedef"
make: *** [md_opt] Error 1
[16:01:18] pwarren at molly ~/UNI/comp3320/ass1 $ gcc md_opt.c -o md_opt
In file included from /usr/include/stdio.h:34,
                 from md_opt.c:22:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/stddef.h:201: syntax
error before "typedef"
[16:01:35] pwarren at molly ~/UNI/comp3320/ass1 $ 


The strange thing is, an almost identical peice of code will compile, as
will any other code I've tried, and I'm sure they all reference
<stdio.h>

Can someone please help me?  As I have no idea how this error comes about.

I'll attatch the code in question. 

By the way, the assignment was due last term,  And I got 23.5/30 so I'm
not needing help on that  :o)  I'm just trying to implement a working thread-safe version.



Cheers
-- 
Paul Warren
u3292467 at student dot anu dot edu dot au
www.geocities.com/qvack_82/


More information about the linux mailing list