failed to build waffles with MS Visual Studio 2013

Help
Anonymous
2014-06-13
2014-06-13

  • Anonymous
    2014-06-13

    The problem seems releated with cmath shipped with VS 2003 Express for Windows Desktop,
    when building ghelp.h it complians about :

    max is not member of std;
    min is not member of std;

     
  • Mike Gashler
    Mike Gashler
    2014-06-13

    I recently ported Waffles for VS 2013, so I think the version in our Git repository should build without errors. (See http://waffles.sourceforge.net/docs/git.html). If I recall correctly, the solution to this particular problem was to move
    #define NOMINMAX
    to occur before
    #include <BaseTsd.h>
    in src/GClasses/GError.h, like this:
    #ifdef WINDOWS
    // Throw out the min and max macros supplied by Microsoft that collide with std::min and std::max
    # define NOMINMAX
    # undef min
    # undef max
    # include <BaseTsd.h>
    # include <algorithm>
    #endif

     


Anonymous


Cancel   Add attachments