MATLAB Answers

unexpected compiler error on HDL Coder

3 views (last 30 days)
Carlos
Carlos on 27 Feb 2012
Commented: Walter Roberson on 26 Dec 2017
Hi I got this error (Error using create_file_name_info (line 263) unexpected compiler) when I try with a simple model using a Matlab Function Block in HDL Coder. I have set up the compiler LCC from Matlab. I alsotried with C++ compiler and I get the same error. Could anyone help me with this? thanks

  0 Comments

Sign in to comment.

Accepted Answer

Tim McBrayer
Tim McBrayer on 27 Feb 2012
The C/C++ compiler setting is not directly used by HDL Coder. The error message you are receiving can only be emitted when compiling your MATLAB Function Block for simulation, and the C compiler is misconfigured. Can you run your model in Simulink?

  3 Comments

Carlos
Carlos on 29 Feb 2012
Thanks Tim.
Actually the error was while trying to run the model in Simulink. I found that I had to setup a compiler in order to compile Matlab Function Blocks. So I did it using the command "mex -setup". Thanks again for your answer.
kaja supriya
kaja supriya on 26 Dec 2017
sorry sir i didn't get you..could you please explain it clearly.please..thanks..
Walter Roberson
Walter Roberson on 26 Dec 2017
Kaja: install a compiler supported by your release of MATLAB and then in MATLAB command
mex -v -setup C

Sign in to comment.

More Answers (1)

Pablo sanchez
Pablo sanchez on 1 Sep 2017
Thanks, its very good solution¡

  0 Comments

Sign in to comment.

Categories