strange error!

S

Sheldon

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
 
B

BRG

Sheldon said:
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
 
S

Sheldon

BRG said:
Sheldon said:
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
 
B

BRG

Sheldon said:
BRG said:
Sheldon said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top