Menu

failed to build waffles with MS Visual Studio 2013

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

    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</algorithm></basetsd.h></basetsd.h>

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.