Hi ArrayFire,
In the "helloworld.cpp" file, if I do the add <windows.h> header, as follows:
#include <windows.h>
#include <arrayfire.h>
then, the following compilation errors occur:
Severity Code Description Project File Line Suppression State
Error (active) E0018 expected a ')' TestArrayFire3_8 C:\Program Files\ArrayFire\v3\include\af\algorithm.h 163
Error (active) E0145 variable "af::minByKey" may not be initialized TestArrayFire3_8 C:\Program Files\ArrayFire\v3\include\af\algorithm.h 180
Error (active) E0020 identifier "keys_out" is undefined TestArrayFire3_8 C:\Program Files\ArrayFire\v3\include\af\algorithm.h 180
Error (active) E0146 too many initializer values TestArrayFire3_8 C:\Program Files\ArrayFire\v3\include\af\algorithm.h 180
Error (active) E0020 identifier "vals_out" is undefined TestArrayFire3_8 C:\Program Files\ArrayFire\v3\include\af\algorithm.h 180
It looks like there may be a clash with the min() function defined in <windows.h> (maybe?)
-Victor