| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Stateflow |
| Contents | Index |
| Learn more about Stateflow |
You must use a C or C++ compiler for compiling code that you generate. The Windows version of Stateflow software ships with a C compiler (lcc.exe) and a make utility (lccmake). Both tools reside in the folder matlabroot\sys\lcc. If you do not install any other compiler, lcc is the default compiler that builds your targets.
If you use the UNIX version of Stateflow software or do not wish to use the default lcc compiler, you must install your own target compiler. You can use any compiler supported by MATLAB software.
Note For an updated list of supported compilers, go to: http://www.mathworks.com/support/compilers/current_release/ |
To install your own target compiler:
At the MATLAB prompt, type:
mex -setup
Follow the prompts for entering information about your compiler.
Note If you select an unsupported compiler, this warning message appears when you start a build that requires compilation: The mex compiler specified using 'mex -setup' is not supported for simulation builds. Using the lcc compiler instead. |
![]() | Specifying Relative Paths for Custom Code | Examples of Integrating Custom C Code in Nonlibrary Models | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |