Hi Ho! --- On Fri, 6/13/08, vicpk4 <gavrilov_victor@xxxxxxx> wrote: > 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. Have you tried `-lglut', for example, `gcc -o show_triangle show_triangle.c -lglut'? AFAIK, Slackware puts libglut.so in /usr/X11R6/lib/. If that does not work, just tell us. I think this topic is not suitable for this mailing list because this has nothing to do with GCC. But, I maybe wrong anyway. > Thanks, > Victor. Best regards, Eus