Legacy Code - Functions with arguments not working
이전 댓글 표시
Hey,
I try to build a S-Function with legacy_code, but I get a error while building with:
legacy_code('sfcn_cmex_generate', def);
the following Error:
Error using legacycode.LCT.legacyCodeImpl
Cannot find a valid argument list in the function specification:
--> void Init(int32)
Error in legacy_code (line 101)
[varargout{1:nargout}] = legacycode.LCT.legacyCodeImpl(action, varargin{1:end});
Header-File:
#ifndef __Bridge__
#define __Bridge__
void Init(int fosc);
void Init(void);
#endif
Fcn-Spec:
void Init(int32 fosc)
If I test this with the other function with no arguments, all works correctly. What am I doing wrong?
댓글 수: 2
XingZhou Mu
2024년 4월 15일
May I ask if you have solved this problem? I have also encountered the same problem
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Integrate C/C++ Code Using Legacy Code Tool에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!