GCC 7.4 with R2018a

1 次查看(过去 30 天)
sbei arafet
sbei arafet 2019-8-12
Hi,
Is there any way to install newest version of GCC on ubuntu 18.04 with matlab r 2018a which seems supporting only 6.3 version. Thanks

回答(1 个)

Walter Roberson
Walter Roberson 2019-8-12
Yes, certainly. All you have to do is install whatever version of gcc that you want, and then replace the first gcc on your path with a small shell script that notices when it is invoked with --version and responds with a lie instead of the actual version.
Will it function properly? Who knows ?! Probably not. In particular, I suspect C++ exception handling will not work with code compiled with 6.3 .
But, of course, whether it will work or do anything useful was not your question: you just want to know if it can be installed.

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by