Request for clarification on support GCC version for matlab on Linux

4 ビュー (過去 30 日間)
Wes
Wes 2020 年 5 月 4 日
コメント済み: Sai Sri Pathuri 2020 年 5 月 12 日
It mentions that for release 2019a supported versions of GCC are 6.3.x, are newer versions supported? Or only 6.3.x?
I am asking because I am upgrading GCC on a CentOS 7 system and would like to build the newest version of GCC if possible.
Thanks!

回答 (1 件)

Sai Sri Pathuri
Sai Sri Pathuri 2020 年 5 月 9 日
We claim gcc 6.3 as the officially supported compiler because it is the version we thoroughly qualified. That being said, other versions of gcc should work in general. The only difference is that MEX command issues a warning if a unsupported gcc compiler is being used. You may suppress the warning by using the warning command if you would rather not utilize the particular gcc version.
  2 件のコメント
AlexK
AlexK 2020 年 5 月 11 日
I am using gcc 6.5 because the ubuntu repositories no longer offer gcc 6.3 and the only option is to compile from source. Are you saying that the unsupported gcc version warning will still show up but that in general as long as the mex command ends with 'MEX completed successfully' the warning may be ignored?
Sai Sri Pathuri
Sai Sri Pathuri 2020 年 5 月 12 日
Yes, you may ignore the warning.
If you don't want the warning to be shown, you may use
warning('off',warnId)
You may use lastwarn after mex compilation to get the warning identifier
[msgStr,warnId] = lastwarn
You may refer the following link for similar answer

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

カテゴリ

Help Center および File ExchangeC Shared Library Integration についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by