No supported Visual C/C++ compiler found. Even with Visual Studio Premium

조회 수: 8 (최근 30일)
Christian
Christian 2014년 1월 13일
댓글: Ilian Jaeger 2017년 3월 15일
Hi everybody,
I use matlab with simulink to generate C++ code from a simple model. System target file is grt.tlc (Create Visual C/C++ Solution file for the "grt" target). When I try to build the model, I get the error:
"No supported Visual C/C++ compiler found. Check your installation of Visual C/C++."
After some research I found 2 issues which can cause this error:
  1. Only the Express version of Visual Studio is installed
  2. Matlab cant find any compiler
I think none of these is matching my problem, because ive installed VS Permium and the output of my CompilerConfiguration is:
>> mex.getCompilerConfigurations
ans =
CompilerConfiguration with properties:
Name: 'Microsoft Visual C++ 2010'
Manufacturer: 'Microsoft'
Language: 'C++'
Version: '10.0'
Location: 'c:\Program Files (x86)\Microsoft Visual Studio 10.0'
Details: [1x1 mex.CompilerConfigurationDetails]
LinkerName: 'Microsoft Visual C++ 2010'
LinkerVersion: '10.0'
My generall setup is:
  • Windows 7 (64bit)
  • Visual Sutdio Premium
  • Matlab 2013a (also tried with 2012a, same error)
I tried some reinstallation of matlab and vs but nothing helps. I also tried installing Windows SDK 7.1 and use this compiler via mex -setup, but again the same error. So how can i get matlab to use the visual studio compiler?
Thanks in advance
  댓글 수: 2
tianggang huti
tianggang huti 2015년 9월 16일
I get the same problem and have no idea how to solve it,could you tell me how you solve the problem at last?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by