apryor6 / splinterp

Lightweight, multithreaded, MEX-aware C++ header-only template library for parallel calculation of linear, bilinear, and trilinear interpolation.
BSD 2-Clause "Simplified" License
60 stars 9 forks source link

Matlab mex not working #6

Open Vytautas111 opened 4 years ago

Vytautas111 commented 4 years ago

Thanks for sharing this, it looks great!

I have one question. I'm trying to run this from Matlab, but I'm getting the following errors when I run the "compile_mex_script" file":

MATLAB\splinterp-master\splinterp1.cpp(18): error C2039: 'max': is not a member of 'std' Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\thread(28): note: see declaration of 'std' Matlab\splinterp-master\splinterp1.cpp(18): error C3861: 'max': identifier not found MATLAB\splinterp-master\splinterp1.cpp(40): error C2039: 'max': is not a member of 'std' Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\thread(28): note: see declaration of 'std' MATLAB\splinterp-master\splinterp1.cpp(40): error C3861: 'max': identifier not found

any idea why this happens?