Re: [AD] macro namespaces

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Sat, February 23, 2008 4:03 pm, Peter Wang said:
> Hi,
>
> Milan's latest commit adds a platform configuration macro
> ALLEGRO_OGL. I
> wondered why it was called that instead of ALLEGRO_OPENGL, but of
> course
> ALLEGRO_OPENGL is already the name of a display flag.  Similarly
> with
> ALLEGRO_DIRECT3D and ALLEGRO_D3D.  I think we need to start
> distinguishin the configuration macros from other macros, e.g.
> ALLEGRO_CFG_OPENGL.  We had the same confusions in Allegro 4.
>
> Peter

I was just changing ALLEGRO_D3D to ALLEGRO_CFG_D3D when I noticed
that after an svn up the build fails on the demo. The full error is
below. Even after passing WANT_OGL=off it still seems to be building
the OpenGL driver.

In file included from
C:\Users\trent\4.9\include/allegro5/opengl/gl_ext.h:39,
                 from
C:\Users\trent\4.9\include/allegro5/opengl/algl.h:47,
                 from C:\Users\trent\4.9\include/allegro5/allegro.h:74,
                 from C:\Users\trent\4.9\include/allegro5/allegro5.h:4,
                 from C:\Users\trent\4.9\demo\include/a5teroids.hpp:4,
                 from C:\Users\trent\4.9\demo\src\Asteroid.cpp:1:
C:\Users\trent\4.9\include/allegro5/opengl/GLext/gl_ext_api.h:1827:
error: '<ano
nymous>' has incomplete type
C:\Users\trent\4.9\include/allegro5/opengl/GLext/gl_ext_api.h:1827:
error: inval
id use of 'GLvoid'
mingw32-make[2]: *** [demo/CMakeFiles/demo.dir/src/Asteroid.obj]
Error 1
mingw32-make[1]: *** [demo/CMakeFiles/demo.dir/all] Error 2
mingw32-make: *** [all] Error 2

Trent




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/