Documentation

slrtsetCC

Compiler settings for development computer environment

Syntax

slrtsetCC setup
slrtsetCC 'type' 'location'

Description

example

slrtsetCC setup queries the development computer for installed C compilers supported by the Simulink® Real-Time™ environment. You can then select the C compiler.

In a future release, the slrtsetCC and slrtgetCC functions will be removed.

Use the mex command. The command mex -setup sets the default compiler for Simulink Real-Time builds, provided the MEX compiler is a supported Microsoft® compiler. Use slrtsetCC('setup') only if you must specify different compilers for MEX and Simulink Real-Time.

By default, the Microsoft Visual Studio® 2015 installer does not install the C++ compiler that Simulink Real-Time requires. To install the C++ compiler, perform a custom install and select the C++ compiler. If you already installed Microsoft Visual Studio with the default configuration, rerun the installer and select the modify option.

example

slrtsetCC 'type' 'location' sets the compiler type and location.

To return to the default MEX compiler from a setting by slrtsetCC, type slrtsetCC 'VisualC' '', setting the compiler location to the empty character vector.

Examples

collapse all

slrtsetCC setup
Select your compiler for Simulink Real-Time.

[1] Microsoft Visual C++ Compilers 2008 Professional Edition (SP1) 
     in c:\Program Files (x86)\Microsoft Visual Studio 9.0
[2] Microsoft Visual C++ Compilers 2010 Professional 
     in C:\Program Files (x86)\Microsoft Visual Studio 10.0

[0] None


Compiler:2

Verify your selection:

Compiler: Microsoft Visual C++ Compilers 2010 Professional
Location: C:\Program Files (x86)\Microsoft Visual Studio 10.0

Are these correct [y]/n?y

Done...
slrtsetCC 'VisualC',
     'C:\Program Files (x86)\Microsoft Visual Studio 10.0'

Input Arguments

collapse all

type must be VisualC, representing the Microsoft Visual Studio C compiler.

Example: 'VisualC'

Data Types: char

Data Types: char

Introduced in R2014a

Was this topic helpful?