Daniel, It is very annoying that windows.h breaks so much. Therefore, if possible, we avoid to include windows.h as side-effect of including a wt header file. That you run into these problems means that windows.h is included before you include Wt header files.
Unfortunately, we have to live with the situation as it is, and I'm happy to follow your suggestion to rewrite our code to be more windows.h-friendly. I changed WAxis like this: void setRange(double min, double max); void setRange(double minimum, double maximum); But I could not find occurences of min or max in the other header files that you mention? Regards, Wim. 2010/1/28 Daniel Cavalcanti <necr0pote...@gmail.com>: > Hi everyone, > > WAxis, WChart2DRenderer and WStandardItem use std::max/std::min. There are > many other files as well but I didn`t list them all. When compiling under > Windows there is a conflict with the declarations contained in WinDef.h. > > Long story short, the explanation is here: > http://heifner.blogspot.com/2008/02/stdmin-and-stdmax.html > > Recommended approach: > replace all std::max and std::min for (std::max) and (std::min). I find this > approach cleaner than using #define NOMINMAX. > > Cya, > Daniel. > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > witty-interest mailing list > witty-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/witty-interest > > ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest