I have a controller block designed in Matlab R2013b simulink. I want to generate ac/c++ code of the block by using the 'Build Model' function. However, I keep getting this error:
"An installed compiler was not detected. Certain simulation modes, as well as host-based coder builds require that a compiler be installed. Please install one of the supported compilers for this release as listed at: http://www.mathworks.com/support/compilers/R2013b/win64.html MATLAB must be restarted after the compiler is installed ."
I downloaded Microsoft Windows SDK for Windows 7 and .NET Framework 4 (supported and Compatible Compilers – Release 2013b). However I am still getting the same error.
Please can anyone suggest a solution?
Step 1- download the Microsoft Windows SDK 7.1 from http://www.mathworks.co.uk/support/compilers/R2012a/win64.html .
Step 2 - Open the command line and type mex -setup
Step 3 - type y to locate installed compilers
Step 4 - Type the number in front of the Microsoft Software Development Kit 7.1 (for me it was 1)
Step 5 - type y to verify your choice
Step 6 - Open matlab and use the 'Build Function' to convert your simulink block to c/c++ code (For me it worked)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.