Hi, I am getting compile errors with VS 2008, e.g. a define "min" conflicts with the line:
Code: if (fabs(length2) <= std::numeric_limits<double>::min()) in Matrix_implemenation.cpp. The define comes from Windows SDK 7.1 WinDef.h that looks like this: Code: #ifndef NOMINMAX #ifndef max #define max(a,b) (((a) > (b)) ? (a) : (b)) #endif #ifndef min #define min(a,b) (((a) < (b)) ? (a) : (b)) #endif #endif /* NOMINMAX */ Anyone facing the same issues? I read CMake: Code: # Both Cygwin and Msys need -DNOMINMAX ??? IF(UNIX) ADD_DEFINITIONS(-DNOMINMAX) ENDIF(UNIX) And then again I read gl3.h: Code: #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) #define WIN32_LEAN_AND_MEAN 1 #include <windows.h> #endif File "GL" reads: Code: #elif defined(OSG_GL3_AVAILABLE) #define GL3_PROTOTYPES 1 #include <GL3/gl3.h> #ifndef GL_APIENTRY #define GL_APIENTRY APIENTRY #endif // GL_APIENTRY #else Do I conclude correctly, that Windows also needs global define NOMINMAX because gl3.h includes windows.h without the define? Alternatively file "GL" should define NOMINMAX before include gl3.h? Cheers, Florian ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32084#32084 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org