[Tips & tricks] - How to install the SDK 7.1 environment to use the Visual C++ compiler in Simcenter Amesim

Community Manager Community Manager
Community Manager

You want to compile your model in Simcenter Amesim using the Visual C ++ compiler? To proceed you need to installe the SDK 7.1 environment.

Watch this 2-minute video to complete your installation according to your Windows version

(view in My Videos)


Or follow the step-by-step guide here below and find the right links here below:

Firstly, you have two ways to verify if the compiler is already installed on your system. Indeed, with the standard installation of Simcenter Amesim you only have the GNU GCC compiler, the Visual C++ compiler is not delivered.


1) Check your programs inside your control panel:




2) In Simcenter Amesim, go to Tools > Options > Preferences and then access the compilation tab:




You will see thanks to the information message if the compiler is installed or not.


If you don't have the Visual C++ compiler installed, check with your system administrator to see if you can ask them for the compiler installation.


3) Obtain the 64-bit Visual C++ compiler by installing Microsoft SDK.


Follow this step guide:


  1. Uninstall all Visual Studio programs/compilers/redistributables etc.
  2. Uninstall all .NET Framework programs
  3. Uninstall all Windows SDK packages
  4. Install Windows SDK 7.1 Go to the webpage to download it.                                   GRMSDKX_EN_DVD.iso for 64-bit and GRMSDK_EN_DVD.iso for 32-bit. During installation, keep DEFAULT folder for installation, under the "Installation Options" menu, UNCHECK the "Visual C++ Compilers" and "Microsoft Visual C++ 2010" components.
  1. Install .NET Framework 4.5.2 Click on this link to download it.
  2. Applied the SDK 7.1 Patch (contains the 32 bit and 64 bit compilers) : Go to the webpage to download it.
  3. Reinstall the Microsoft Visual C++ 2010 redistributable packages

x64: Go to the webpage to download it. 

x86: Go to the webpage to download it.  

  1. Copy C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat into $AME
  1. Create vcvars64.bat in $AME with following line:

            CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release


Siemens Creator Siemens Creator
Siemens Creator



what is the best alternative for coming LMS Amesim releases since Mathworks will stop their SDK 7.1 support.









Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

The video is great, but it is confusing as the instructions in the video are different than the instructions in the step-by-step guide...

Siemens Dreamer Siemens Dreamer
Siemens Dreamer

For Matlab/Simulink 2017b and onwards, Microsoft Visual Studio 2013 is supported by Simcenter Amesim and Matlab/Simulink 2017b