GCC 7.4 with R2018a

2 views (last 30 days)
sbei arafet
sbei arafet on 12 Aug 2019
Commented: sbei arafet on 12 Aug 2019
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

Answers (1)

Walter Roberson
Walter Roberson on 12 Aug 2019
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.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!