-
missing type definition
Dear all,
I generated C code from function block diagram, in which I see the following lines
extern int32 *BF_ANA;
extern uchar *BF_BOO;
#define _SCC_FZPF_ID0200314_OUT2_VA 0X0413
#define _SCC_MYAVFBD_OUT2 0X0411
#define _SCC_MYAVFBD_OUT1 0X05FB
#define _SCC_FZPF_ID0200314_OUT1_VA 0X05FF
BF_BOO[ _SCC_MYAVFBD_OUT2 ] = BF_BOO[ _SCC_FZPF_ID0200314_OUT2_VA ];
BF_ANA[ _SCC_MYAVFBD_OUT1 ] = BF_ANA[ _SCC_FZPF_ID0200314_OUT1_VA ];
I suppose BF_ANA and BF_BOO have been defined in some other header files which is not given out after code generation. Can someone help me how to define these items?
Thanks
Roshni
-
What do you expect us to do with snippets of meaningless symbols generated by some auto code generation tool?
Well you could do
int32 *BF_ANA = malloc( pickHoweverManyYouNeed * sizeof(*BF_ANA) );
Or perhaps your model is wrong, if it's emitting declarations for things, without the definitions.
-
BF_ANA and BF_BOO would be defined in source files, not headers.