您的位置:首页 > 编程语言 > MATLAB

When creating mex in MATLAB: error C3861: 'fmax': identifier not found

2016-04-06 23:27 645 查看
fmin and fmax are a C99 features.

Microsoft doesn't fully support the C99 standard.

You can use std::max and std::min from standard algorithm library instead, after all you write C++ program.

解决方法:在头文件中加入

#include <algorithm>


参考文献:http://stackoverflow.com/questions/25537625/when-creating-mex-in-matlab-error-c3861-fmax-identifier-not-found
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: