Skip to content

gcc error: 'min' is not defined in this scope using gcc 4.5.2 on Windows 7 64-bit #147

@GoogleCodeExporter

Description

@GoogleCodeExporter
Building in Windows 7 64-bit using EPD 6.3-2 I got the above error. I fixed it 
and was able to compile the 2.1.8 tagged version from GitHub by adding:

#if !defined(max)
#define max(a, b) ((a) > (b) ? (a) : (b))
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif

to several of the C++ files

Sorry if someone else has reported this issue.

Original issue reported on code.google.com by wesmck...@gmail.com on 3 Jan 2011 at 7:24

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions