Hi Dirk,

> > I have some trouble compiling my app using
> > the latest cvs because of new variables you
> > called "debug" (e.g. in osgInit). Unfortunately
> > I have a 3rd party library which defines
> > "#define debug 0" in its header :-( I can't
> > bash them so I kindly ask you to rename debug
> > into osgDebug or dbg or whatever is not "debug".
> >
> > Found two occurrences of that variable so far, both
> > in the osgInit method in OSGThreadManager.h and OSGBaseFunctions.h
> 
> hm, I could do that, but I think it would be easier for you to just
> '#undef debug' before loading the OpenSG headers, unless OpenSG is
> loaded by that third party header directly, but then I would be curious
> how they got it to work in the first place. ;)

Yep... I uses #undef debug before osg headers and
#define debug 0 after the inclusion. The 3rd party
lib is template based and instantiates a class
in the cpp file. so... Well. Bit ugly.

Regards,

  Toni

P.S.: By the way, it's not the first lib I see using #define debug,
so ... just don't use debug as variable name :)





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to