How to call cpp function in coder ceval function?

조회 수: 1 (최근 30일)
Arhan Kundu
Arhan Kundu 2022년 1월 20일
편집: Rishabh Singh 2022년 2월 7일
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
Rik
Rik 2022년 1월 20일
Wouldn't it be easier to compile it with mex and call it that way?
Arhan Kundu
Arhan Kundu 2022년 1월 20일
We are trying to autogenerate code in simulink and mex functions are not supported for code generation

댓글을 달려면 로그인하십시오.

답변 (1개)

Rishabh Singh
Rishabh Singh 2022년 2월 7일
편집: Rishabh Singh 2022년 2월 7일
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.

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by