including source files in s-function gateway file
古いコメントを表示
I am attempting to "include" a "xxx.c" file in the top s-function file that gets compiled into a ".mexw32" file. The file has the normal boiler-plate functions in it like :
static void mdlInitializeSizes( SimStruct *S ) static void mdlInitializeSampleTimes( SimStruct *S )
Etc etc
At the top of the file it looks like:
#define S_FUNCTION_NAME s_simulation #define S_FUNCTION_LEVEL 2
/******************/ /* / / INCLUDED FILES / / / /*****************/
/* reference appropriate header files */ #include "../simulation.h"
#include "../ChekFile.c" #include "../ChekFile2.c"
The header file is part of the code that currently functions OK but the last two lines do not seem to get used because when I use "dumpbin" to look in the ".mexw32" file I can't find any of the subroutines and the size of the ".mexw32" file doesn't change no matter how big I make the code for the ChekFile.c subroutines. I put calls to the subroutines in some of the boiler-plate subroutines but there doesn't seem to be a reference to them in the final ".mexw32" file.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Block and Blockset Authoring についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!