Quoting Jon Stockill :

> Frederic Bouvier wrote:
> > It looks like the APIENTRY symbol is not defined or has been #undef'ed
> > somewhere.
> > The second guess seems the most probable, as osg/GL defines APIENTRY for
> non
> > Win32 environments, and osg/BufferObject includes osg/GL. On MSVC, I
> discovered
> > that glut.h included by plib/pu.h #undef it. I am clueless why it is a
> problem
> > on Un*x systems.
>
> Hmmm - near the top of glut.h I have:
>
> /* define APIENTRY and CALLBACK to null string if we aren't on Win32 */
> #if !defined(_WIN32)
^^^^^^^^^^^^^^^^^^^^^^^^^
a wise thing would have been :

#if !defined(_WIN32) and !defined(APIENTRY)

> #define APIENTRY
> #define GLUT_APIENTRY_DEFINED
> #define CALLBACK
> #endif
>
> And near the bottom, there is:
>
> #ifdef GLUT_APIENTRY_DEFINED
> # undef GLUT_APIENTRY_DEFINED
> # undef APIENTRY
> #endif
>
> So it appears to do the right thing, and then blow it away later in the
> file.

This GLUT_APIENTRY_DEFINED stuff puzzle me. It only create conflicts with other
files that use APIENTRY. I don't know if it's the same for freeglut. Maybe this
nonsense hadn't be reproduced in compatible libraries ?

-Fred

--
Frédéric Bouvier
http://frfoto.free.fr                      Photo gallery - album photo
http://www.fotolia.fr/p/2278/partner/2278  Other photo gallery
http://fgsd.sourceforge.net/               FlightGear Scenery Designer

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to