POV-Ray : Newsgroups : povray.windows : povray compilation with msvc 2008 problem : Re: povray compilation with msvc 2008 problem Server Time
28 Apr 2024 23:04:30 EDT (-0400)
  Re: povray compilation with msvc 2008 problem  
From: Chris Cason
Date: 15 Sep 2008 03:01:36
Message: <48ce0850@news.povray.org>
> I am aware, that msvc uses specific min/max macros that may interfere with
> povray source code during compilation. I know the NOMINMAX preprocessor
> definition and was trying to apply it in the makefile, but it didn't change
> much - still the same error. I was trying to use #undef min, max macros in the
> original source code, but it seems little elegant, and doesn't work.
> Do You have any suggestions, maybe there is something I am doing wrong o

I haven't tried to build the 3.6 source with VC9, however at a guess
try redefining min to be std::min and max to be std::max (or make sure
'using namespace std' is visible where min and max are used).

Of course this may have nothing to do with the problem but without the
source in front of me at the moment it's the first thing that comes to
mind.

-- Chris


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.