Error with code generation

3 views (last 30 days)
Jeevan George
Jeevan George on 15 Oct 2015
Hi, Please can someone advise on the issue I face with generating code for my model On command mex -setup Matlab returns
"MEX configured to use 'Microsoft Visual C++ 2013 Professional (C)' for C language compilation."
I am generating code for my model I receive an error message
"### Processing Template Makefile: ABCTI.tmf
### Build procedure for model: 'Model_reference_ref' aborted due to an error.
"Error using setup_for_lcc (line 77) An installed compiler was not detected. Certain simulation modes, as well as host-based coder builds require that a compiler be installed."
with the call chain
Error in wrap_make_cmd>LocPCWrapMakeCmd (line 82)
Error in wrap_make_cmd (line 15)
Error in rtwprivate (line 16) [varargout{1:nargout}] = feval(function_name, varargin{1:end});
Error in RTW/genMakefileAndBuild>invokeTMF (line 1058)
Error in RTW/genMakefileAndBuild>locGenMakefileAndBuild (line 105)
Error in RTW/genMakefileAndBuild (line 93)
Error in RTW/genMakefileAndBuildWrapper (line 11)
Error in coder.internal.runCompile (line 25)
Error in coder.internal.ModelBuilder/make_rtw (line 830) compileResult = coder.internal.runCompile...
Error in coder.internal.ModelCodegenMgr/make_rtw (line 8) buildResult = obj.make_rtw(varargin);
Error in make_rtw (line 18) buildResult = h.make_rtw(varargin{:});
Error in build_target>RunBuildCmd (line 93)
Error in build_target (line 5)
Error in build_model_reference_target (line 56)
Error in update_model_reference_targets>locUpdateMdlRefTarget (line 1154)
Error in update_model_reference_targets>locUpdateAllMdlRefTargets (line 777)
Error in update_model_reference_targets>loc_update_model_reference_targets (line 446)
Error in update_model_reference_targets>do_update_model_reference_targets (line 139)
Error in update_model_reference_targets (line 44)
Error in build_standalone_rtw_target (line 45)
Error in slbuild_private>loc_codegenentry (line 749)
Error in slbuild_private (line 421)
Error in sl (line 15)
[varargout{1:nargout}]=feval(varargin{:});
Error in slbuild (line 61) sl('slbuild_private', mdl, varargin{:});
Error in rtwbuild (line 189) slbuild(sys, 'StandaloneRTWTarget', ...

Answers (0)

Categories

Find more on Build Configuration in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!