What does "function ?? declared implicitly" means?
37 ビュー (過去 30 日間)
古いコメントを表示
Hi, I'm trying to integrate my c code to simulink.
I made a header file and a source file named file.h and file.c.
and there is a function named function1 and the code is stated below.
function1(void)
{
static double a;
a = a+1;
return a;
}
Next, I made a C caller block and typed like below.
function1();
After that, I ran my code and the error is stated like this.
In line 1:error: 223, function "function1" declared implicitly
| function1();
| ^
How can I solve this error?
0 件のコメント
回答 (1 件)
Bruno Luong
2023 年 9 月 11 日
編集済み: Bruno Luong
2023 年 9 月 11 日
you need add double as return type for your function prototype and declaration
double function1(void);
double function1(void)
{
...
}
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!