How to call cpp function in coder ceval function?

2 visualizaciones (últimos 30 días)
Arhan Kundu
Arhan Kundu el 20 de En. de 2022
Editada: Rishabh Singh el 7 de Feb. de 2022
Hi, I am trying to call a cpp function in matlab using coder.ceval method. I am getting errors like the function is not defined, but the same code works for a c function. Please help me.
  2 comentarios
Rik
Rik el 20 de En. de 2022
Wouldn't it be easier to compile it with mex and call it that way?
Arhan Kundu
Arhan Kundu el 20 de En. de 2022
We are trying to autogenerate code in simulink and mex functions are not supported for code generation

Iniciar sesión para comentar.

Respuestas (1)

Rishabh Singh
Rishabh Singh el 7 de Feb. de 2022
Editada: Rishabh Singh el 7 de Feb. de 2022
Hi,
If you could provide the cpp function then I can better answer your question. But in meanwhile a similar question has been answered on the following link.
Hope this helps.

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by