Hi Wojciech The GLExtensions.cpp doesn't compile on VS2008, too. Your changes should work, I think.
Cheers, Wang Rui 2010/5/17 Wojciech Lewandowski <[email protected]>: > Hi Robert, > > Added #include <windows.h> in GLExtensions.cpp for WIN32 to compile OSG > under Visual Studio 2010 Express. I am not sure if the trouble is related to > the most recent changes in OSG (on 14th of May) or if default windows header > inclusion chain has changed somehow in VS 2010 because compiler was not > seeing standard windows types (HDC) used by wgl functions (in line 145) . > Adding #include<windows.h> solved the problem. > I checked earlier versions og GLExtensions.cpp and it seems that > #include<windows.h> was thrown away with last update related to static GLES > linking. So I guess the problem with compilation may be wider and actually > present in all VS versions. Unfortunately I cannot test it at home where I > only have VS2010. I will check 2008 at work tomorrow. > > Code change based on OSG trunk. > > Cheers, > Wojtek Lewandowski > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
