フィルターのクリア

Mex (Matlab 2015a) - error "no supported compiler or SDK was found"

1 回表示 (過去 30 日間)
huynh vu the
huynh vu the 2015 年 4 月 13 日
コメント済み: huynh vu the 2015 年 4 月 20 日
Dear supporters,
I am using Matlab 2015a on the Ubuntu 14.10 When i execute the following command "/usr/local/Matlab2015a/bin/mex -cxx CXX=g++4.7 CC=g++4.7 LD=g++4.7 -lm -O -output A.mexa64 A.o B.o C.o"
I have received the following error "no supported compiler or SDK was found."
Hope to receive your support on this problem.
Best regard Vu The Huynh

回答 (1 件)

Philip Caplan
Philip Caplan 2015 年 4 月 15 日
Are you missing a hyphen between g++ and the version number? In other words, try using "g++-4.7" instead of "g++4.7". Also, please try the resolution given in the following link which explains how to adjust "mexopts.sh" to use a supported compiler:
  1 件のコメント
huynh vu the
huynh vu the 2015 年 4 月 20 日
Dear supporter,
Thank for your reply. I have found the asnwer. I am not missing a hyphen. After i install g++-47, i haven't changed the default compiler.
After changing the default by the following command "sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7", i was able to resolve the issue.
Best regards Vu The Huynh

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeTroubleshooting in MATLAB Compiler SDK についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by