Re: [AD] macro namespaces

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


Milan Mimica wrote:
On 24/02/2008, Milan Mimica <milan.mimica@xxxxxxxxxx> wrote:
 > 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'


I've seen this error before. It happens with recent gcc. If you replace
 GLvoid with void it will compile. Other GLtypes work fine. I can't think
 of anything else but this being a gcc bug, but they wouldn't make such a
 stupid bug.

Update:
Happens with g++ 4.2.3 (4.2.x IIRC) and not with g++ 4.1.x.

More info:
It doesn't seem to be a g++ bug after all: http://groups.google.ca/group/comp.lang.c++/browse_thread/thread/721db8133870e674

Seems that you cannot typdef a void i this case. I'll just replace that GLvoid with void if nobody minds.


--
Milan Mimica
http://sparklet.sf.net




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