[osg-users] fails compilation on linux (Ubuntu Feisty Fawn)

Robert Osfield robert.osfield at gmail.com
Tue Sep 11 11:48:58 PDT 2007


On 9/11/07, Rafa Gaitan <rafa.gaitan at gmail.com> wrote:
> > #define GL_DEIFINE(name, value) \
> >     #ifndef name \
> >     #define name value\
> >     #endif
> >
> > Then in the header have:
> >
> >   GL_DEFINE(GL_SAMPLER_1D_ARRAY_EXT, 0x8DC0)
> >
> > Thoughts?
>
> I agree with this solution... the only problem is to pay attention on all
> GL_* definitions inside osg:
>
> OpenSceneGraph/include$ grep "define" * -R | grep GL_ | wc -l
>     1240
>
> so... I hope sed comes to help us! :)

Even worse a problem exists with my little macro... it simply doesn't
compile as the internal #ifndef is treated as a quoting of the
variable ifndef which of course doesn't exist.

So... back to square one.

Robert.



More information about the osg-users mailing list