How to add a third-party compiler to MATLAB?

6 views (last 30 days)
Hi, When i tried to import a c-code using LCT(legacy code tool),i am not able to generate the mex file . Since i use lot of machine specific symbols which is not supported by lcc compiler installed inj matlab, Is there any provision for me change the lcc compiler using mex-setup to my own compiler, so that i can change the compiler before i use LCT/ s-function builder.
Regards, Bala

Accepted Answer

Kaustubha Govind
Kaustubha Govind on 16 Oct 2012
Yes, you can use "mex -setup" to change the MEX compiler, but you can only use one of the Supported Compilers (please navigate to your version/platform).
  2 Comments
Bala
Bala on 16 Oct 2012
Edited: Stefanie Schwarz on 17 Apr 2024
Thanks a lot for the reply :)
Using lccopts.bat file posiible to change the path of the installed compiler to an different one?
Kaustubha Govind
Kaustubha Govind on 17 Oct 2012
You could technically do that, but it's not supported by MathWorks. It's probably worth a shot in your case if you are able to invest time in configuring the options file correctly.

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!