On Tuesday 24 June 2008 01:34, Paul Martz wrote: > > The only significant compile option differences between 2.5.2 > > (which works) and svn head (which fails) is that the svn head > > contains an additional /I option not present in 2.5.2: > > /I "C:\OSGDev\OSG\bld\include" > > > > (that is, essentially, a new "include" subdirectory within > > the build directory, which doesn't exist in 2.5.2.) > > Hm. The OpenThreads\Config header (in this directory) #defines a symbol > that results in the inclusion of windows.h within OT's "Atomic" header. I > wonder if this could be why std::max is giving us grief?
Hmm, that pulls windows.h yes. These are that annoying min and max macros defined there. As documented by msdn one should include windows.h when using that functions/intrinsics. So there seems to be a requirement for that. The build system defines the nominmax define only for msys and cygwin. Probably we should either * define nominmax on win32 in any case or * change the code not to use variables called min or max and include <algorithm> which should provide std::min and std::max and makes msvc 8 indeed compile the code (does this also work for other msvc's??). Which one Robert? GReetings MAthias -- Dr. Mathias Fröhlich, science + computing ag, Software Solutions Hagellocher Weg 71-75, D-72070 Tuebingen, Germany Phone: +49 7071 9457-268, Fax: +49 7071 9457-511 -- Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Florian Geyer, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Prof. Dr. Hanns Ruder Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

