HI Gianni, I've just done a quick search of the OSG headers and the only #include <windows.h> is found in include/osgViewer/api/Win32/GraphicsWindowWin32 which only the implementation of src/osgViewer includes so shouldn't effect you unless you are explicitly including it.
So... I think you'll need to search a bit further afield that the OSG to find the culprit for your header include issues. Robert. On 28 February 2013 10:41, Gianni Ambrosio <[email protected]> wrote: > Hi All, > I derive from osgQt::GLWidget so I need to include GraphicsWindowQt. That > causes a linking error since I also implemented a MessageBox class (in a > proper namespace). > Basically the problem is that "Win32 defines MessageBox to be a macro that > expands to either MessageBoxA or MessageBoxW depending on whether you are > compiling for ANSI or Unicode" and somewhere in osg code an "windows.h" > include is used in header files. For that reason I get a linking error using > my MessageBox class. > Now, is there a way to avoid windows.h include in osg header files? > > Regards, > Gianni > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=52900#52900 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

