How do I set Simulink coder compiler version to one that supports C++11?

半腔热情 提交于 2019-12-11 12:34:38

问题


I've got code I'm trying to incorporate into Simulink and its embedded coder. The code uses C++11 extensions. Running mex -setup c++ gives this output:

$ mex -setup c++
MEX configured to use 'Xcode Clang++' for C++ language compilation.

When I build I get a series of C++11 warnings (-Wc++11-extensions), so it would appear that the compiler that Simulink is using is not the default one, which is this:

$ clang --version
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

I don't get an option to select which compiler is used by Simulink and embedded coder, how can I do this please?

来源:https://stackoverflow.com/questions/35852882/how-do-i-set-simulink-coder-compiler-version-to-one-that-supports-c11

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!