By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,159 Members | 979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,159 IT Pros & Developers. It's quick & easy.

strange error!

P: n/a
Good day,

I came across this error during compilation of my program:
*******************************************
cc -g -I/local_disk/opt/HLHDF/0_49/include -I/usr/include -c
msgpps_functions.c
In file included from /usr/include/stdio.h:34,
from msgpps_functions.c:10:
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/include/stddef.h:213:
error: syntax error before "typedef"
make: *** [msgpps_functions.o] Error 1
*******************************************

What is strange is that I have not edited the standard library at all
so what can give me an error in the standard library?

Any ideas?

Thanks

/Sheldon

Nov 6 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
BRG
Sheldon wrote:
Good day,

I came across this error during compilation of my program:
*******************************************
cc -g -I/local_disk/opt/HLHDF/0_49/include -I/usr/include -c
msgpps_functions.c
In file included from /usr/include/stdio.h:34,
from msgpps_functions.c:10:
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/include/stddef.h:213:
error: syntax error before "typedef"
make: *** [msgpps_functions.o] Error 1
*******************************************

What is strange is that I have not edited the standard library at all
so what can give me an error in the standard library?

Any ideas?
I would look at any defines that occur before the standard headers are
included.

A define that conflicts with the names of standard types such as, for
example:

#define size_t

can make a subsequent type definition in a standard header illegal.

Brian Gladman
Nov 6 '06 #2

P: n/a

BRG wrote:
Sheldon wrote:
Good day,

I came across this error during compilation of my program:
*******************************************
cc -g -I/local_disk/opt/HLHDF/0_49/include -I/usr/include -c
msgpps_functions.c
In file included from /usr/include/stdio.h:34,
from msgpps_functions.c:10:
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/include/stddef.h:213:
error: syntax error before "typedef"
make: *** [msgpps_functions.o] Error 1
*******************************************

What is strange is that I have not edited the standard library at all
so what can give me an error in the standard library?

Any ideas?

I would look at any defines that occur before the standard headers are
included.

A define that conflicts with the names of standard types such as, for
example:

#define size_t

can make a subsequent type definition in a standard header illegal.

Brian Gladman
Fantastic Brian,
You are a genius!
It was a letter that at the very beginning of the file. One of things
that happen when you think that are writing in the active window.

Much obliged!

/Sheldon

Nov 6 '06 #3

P: n/a
BRG
Sheldon wrote:
BRG wrote:
>Sheldon wrote:
>>Good day,

I came across this error during compilation of my program:
*******************************************
cc -g -I/local_disk/opt/HLHDF/0_49/include -I/usr/include -c
msgpps_functions.c
In file included from /usr/include/stdio.h:34,
from msgpps_functions.c:10:
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/include/stddef.h:213:
error: syntax error before "typedef"
make: *** [msgpps_functions.o] Error 1
*******************************************

What is strange is that I have not edited the standard library at all
so what can give me an error in the standard library?

Any ideas?
I would look at any defines that occur before the standard headers are
included.

A define that conflicts with the names of standard types such as, for
example:

#define size_t

can make a subsequent type definition in a standard header illegal.

Brian Gladman

Fantastic Brian,
You are a genius!
Sadly not, just someone who has been bitten by the same problem :-(

Brian Gladman
Nov 6 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.