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

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?

0 Comments

Josef

Tags

Products

No products are associated with this question.

1 Answer

Answer by Sean de Wolski on 27 Mar 2013
Accepted answer

2 Comments

Josef 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 http://www.mathworks.com/support/compilers/R2012b/win64.html

Undefined function or variable 'setup'.

Sean de Wolski on 28 Mar 2013
mex -setup

Note the '-'

Sean de Wolski

Contact us