This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc include path problem?
- From: vicpk4 <gavrilov_victor at mail dot ru>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 12 Jun 2008 23:15:35 -0700 (PDT)
- Subject: 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.