| Issue 147: | gcc error: 'min' is not defined in this scope using gcc 4.5.2 on Windows 7 64-bit | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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.
Feb 6, 2011
Well, I can understand not wanting to support gcc builds on Windows. But a lot of 64-bit Windows users will be opting for the headache-free Enthought distribution (especially scientific users), which comes bundled with gcc set up to easily build any additional libraries. Whereas getting a working VC++ 2008 setup is kind of a hassle (requires downloading ISOs from Microsoft, installing, rigging up distutils, etc.). Thanks for looking into it! |
Labels: -Type-Defect Type-Enhancement