Mex Error: undeclared identifier What does this mean?
5 ビュー (過去 30 日間)
古いコメントを表示
Prompt please. I want to make mex from csfunc.c, but the compiler gives out errors, why?
>>mex csfunc.c
Error csfunc.c: 71 undeclared identifier `USE_DEFAULT_SIM_STATE'
Warning csfunc.c: 71 possible usage of USE_DEFAULT_SIM_STATE before definition
Etc. still it is a lot of errors
0 件のコメント
採用された回答
その他の回答 (4 件)
Yucel
2011 年 2 月 23 日
Do you have 64-bit operating system? In that case it's have some problems all the time.
0 件のコメント
Martijn
2011 年 2 月 23 日
USE_DEFAULT_SIM_STATE is defined in simstruc.h so it sounds like you may be missing the following include in your C code:
#include "simstruc.h"
Usually it is best to base your C S-functions on one of the templates like simulink\src\sfuntmpl_basic.c which already has this include line.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!