MATLAB中的Myo臂章手势(无法编译.m或.mex文件)
Myo armband gestures in MATLAB (Unable to compile the .m or .mex file)
我需要一些帮助来使myo-mex文件工作。我不知道如何更改编译器选项,以便mingw支持ISO c++ 2011。代码所在的github存储库可以在这里找到:https://github.com/mark-toma/MyoMex。我得到的错误信息如下所示:
Error using build_myo_mex (line 61)
In file included from C:/MATLAB/SupportPackages/R2015b/MW_MinGW_4_9/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/array:35:0,
from C:MyoMex-masterMyoMexmyo_mexmyo_class.hpp:16,
from C:MyoMex-masterMyoMexmyo_mexmyo_mex.cpp:14:
C:/MATLAB/SupportPackages/R2015b/MW_MinGW_4_9/lib/gcc/x86_64-w64- mingw32/4.9.2/include/c++/bits/c++0x_warning.h:32:2: error: #error This
file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled
with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the
我对这个错误有点无能为力,但我希望有人能帮助我,因为我不擅长使用MATLAB。
在错误信息中有提到
此支持目前是实验性的,必须使用
-std=c++11
或-std=gnu++11
编译器选项。
使用:
-std=c++11
或-std=gnu++11
相关文章:
- 使用 MEX 编译C++文件
- 使用 mex 编译库时出错 - __int 64 未命名类型
- complex_Bessel_function库的编译——与Fortran代码的链接——mex文件
- 使用 mkoctfile 与 Octave 和 Visual Studio 2010 编译器编译 .mex 或 .oct
- MEX 编译给出"there are no arguments to ... that depend on a template parameter"错误
- mex 编译错误: 无法识别的开关: -cxx
- 使用 mex 在 Matlab 中编译C++失败
- C++ MATLAB 中的 MEX 编译
- 在mex函数中使用OpenCV:编译后出错
- Matlab Mex代码未编译
- MATLAB + Mex + OpenCV:正确链接和编译,但在运行时找不到库
- MATLAB中的Myo臂章手势(无法编译.m或.mex文件)
- MATLAB MEX c++文件编译错误,找不到c++命令
- 使用Matlab R2011a在Ubuntu 11.04上编译Matlab mex文件时出错
- 试图用MATLAB的mex编译多个c++文件时出错
- 如何避免重复初始化.mex (matlab编译代码)
- 如何将 MATLAB 的 mex 设置定向到Microsoft Windows SDK 进行C++编译?(设置位置时出错)
- 在Matlab 2013a中编译并运行mex
- 在Visual Studio 2010中为从C文件编译的mex文件添加OpenMP支持
- 无法编译MEX