This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc include path problem?



Hi all.
I use gcc 4.2.3.
When I trying to compile OpenGL application, this error appears:
/usr/include/GL/glext.h:3371: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âGLintptrâ

In glext.h
#include <stddef.h>
...
typedef ptrdiff_t GLintptr;
...

I think, its because gcc includes stddef.h from somewhere, but not from
/usr/lib/gcc/i486-slackware-linux/4.2.3/include. And then ptrdiff_t is
undefined.

I may be wrong. How to specify include path and search sequence,  and how to
know the current one?
I tried to add -I with path, but it doesn't help.
Please, sorry for my English.

Thanks,
Victor.
-- 
View this message in context: http://www.nabble.com/gcc-include-path-problem--tp17815830p17815830.html
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]