フィルターのクリア

mexing CPP on 4.4.7 - std=c++11

4 ビュー (過去 30 日間)
Rick
Rick 2016 年 6 月 24 日
回答済み: David 2018 年 12 月 19 日
Okay, I am trying to compile a C++ file on Linux with 2015b.... I can compile the same c++ file in R2012b for this 4.4.7 system Now on the 2015b, I get the unrecognized command: -std=c++11
I have done some searching on this site, and I know that should be changed probably to C++98..... My question is WHERE ??? I have changed the .../R2015b/bin/glnxa64/g++_glnxa64.xml but I still get the mexing error.......
The only other place I see the std=c++11 is in the .../R2015b/bin/mexopts.sh but in the script its only in the mac section, so it shouldn't be seeing that command... Is there somewhere else that CXX is getting that flag ??????? TIA Rick

回答 (1 件)

David
David 2018 年 12 月 19 日
Using 2018a, altering the two places "-std=c++11" appears in mex_C++_glnxa64.xml fixed the issue for me.

カテゴリ

Help Center および File ExchangeCall C++ from MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by