2016-11-16 105 views
0

我需要一些帮助,使myo-mex文件工作。我不知道如何更改编译器选项,以便mingw支持ISO C++ 2011.可以在此处找到代码所在的github存储库:​​。 错误消息即时得到如下所示:Myo臂章手势在MATLAB(无法编译.m或.mex文件)

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-master\MyoMex\myo_mex\myo_class.hpp:16, 
      from C:\MyoMex-master\MyoMex\myo_mex\myo_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。

回答

0

其右的错误信息

这种支持是目前实验所提到的,并且必须与 -std=c++11-std=gnu++11编译器选项启用。

用途:

-std=c++11-std=gnu++11

+0

这是问题如何更改编译器选项-std = C++ 11? –

+0

@MartinJensen您必须更新一个xml或.sh文件,用于\ bin \ win64 \ mexopts下的mex build 。更新编译器标志以包含'-std = C++ 11'。抱歉,我无法访问任何安装了matlab的系统。 – P0W