MATLAB Answers


Having a problem with MATLAB coder, can anyone help with error?

Asked by Josef
on 27 Mar 2013

>> coder -build Untitled1.prj ??? Unknown compiler ''.

Error in ==> foo Line: 1 Column: 1 Code generation failed: Open error report.

I keep getting this error while using Matlab Coder. Currently I have matlab 2012a and visual studio 2010 Premium installed.

Can anyone guide me with a solution to this problem please?




No products are associated with this question.

1 Answer

Answer by Sean de Wolski
on 27 Mar 2013
 Accepted answer


on 28 Mar 2013

When I tried setting up the coder the following error occurred:

No supported SDK or compiler was found on this computer. For a list of supported compilers, see

Undefined function or variable 'setup'.

mex -setup

Note the '-'

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!