gcc include path problem?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux