Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » (allegrogl) gl_ext_api.h - error

This thread is locked; no one can reply to it. rss feed Print
(allegrogl) gl_ext_api.h - error
Frank Drebin
Member #2,987
December 2002
avatar

i installed allegrogl 0.4.2 and allegro 4.2.2.
when i try to compile the test.c file that comes with allegrogl i get the following error message:

g++ test.c -o mytest -lagl `allegro-config --libs` -lGl -lGLU
In file included from /usr/include/allegrogl/gl_ext.h:27,
                 from /usr/include/alleggl.h:68,
                 from test.c:18:
/usr/include/allegrogl/GLext/gl_ext_api.h:1827: error: ‘<anonymous>’ has incomplete type
/usr/include/allegrogl/GLext/gl_ext_api.h:1827: error: invalid use of ‘GLvoid’

any ideas?

Milan Mimica
Member #3,877
September 2003
avatar

Yeah, experienced the same thing yesterday.
It doesn't happen with gcc-4.1.2, but happens with gcc-4.2.1. I'll try gcc-4.2.2 later today.
It's a gcc bug obviously. It doesn't happen with agl examples...

At /usr/include/allegrogl/GLext/gl_ext_api.h:1827 just change "GLvoid" to "void" and it will work.

update: same problem with gcc-4.2.2

edit: somehow affects only c++ (g++)

Go to: