I am trying to run a Simulink file which contain S-functions along with other Simulink blocks in rapid accelerator mode. When tried to build the executable I am getting a error to change the compiler from LCC to supported compilers.
Note: Matlab documentation suggests lcc compilers are incompatible with S-functions
Steps tried:
Running mex -setup
I was able to select MSVS compiler already installed in my computer. But again while trying to build for rapid accelerator target, Simulink is taking LCC compiler pre-installed with its installation.
Can anyone suggest a work-around, what I am expecting is:
-Ways to change the default compiler (LCC) to another compiler preferably MSVS (installed) for building Rapid Acceleration target -Ways of overriding the LCC selection by Simulink to another compiler selection.