unexpected compiler error on HDL Coder

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

 Respuesta aceptada

Tim McBrayer
Tim McBrayer el 27 de Feb. de 2012

0 votos

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 comentarios

Carlos
Carlos el 29 de Feb. de 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 el 26 de Dic. de 2017
sorry sir i didn't get you..could you please explain it clearly.please..thanks..
Kaja: install a compiler supported by your release of MATLAB and then in MATLAB command
mex -v -setup C

Iniciar sesión para comentar.

Más respuestas (1)

Pablo sanchez
Pablo sanchez el 1 de Sept. de 2017

0 votos

Thanks, its very good solution¡

Productos

Preguntada:

el 27 de Feb. de 2012

Comentada:

el 26 de Dic. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by