NumCpp icon indicating copy to clipboard operation
NumCpp copied to clipboard

max and min are already defined.

Open Angeliccare opened this issue 3 years ago • 1 comments

minwindef.h from SDK 8.1 contains: #ifndef max #define max(a,b) (((a) > (b)) ? (a) : (b)) #endif

#ifndef min #define min(a,b) (((a) < (b)) ? (a) : (b)) #endif

those words are used in numcpp, please.

Angeliccare avatar Sep 26 '22 00:09 Angeliccare

Yep that's unfortunate, but nothing can be done about it.

dpilger26 avatar Sep 27 '22 03:09 dpilger26

@Angeliccare you can try either before including windows.h

#define NOMINMAX

or adding to the compile command -DNOMINMAX

PhilipDeegan avatar Oct 24 '22 21:10 PhilipDeegan

Closing due to inactivity.

dpilger26 avatar Nov 27 '22 16:11 dpilger26