Bus as input in C MEX S-Function and array of structure as structure members
4 次查看(过去 30 天)
显示 更早的评论
I want to build an sfunction with an input bus of type t_Struct2 which is defined like this :
typedef struct {
int a; int b; } t_Struct1;
typedef struct {
int c; t_Struct1 d[10]; } t_Struct2;
When I try to generate the code for the c-mex function and compile it the following error occurs :
error C2228: left of '.a' must have class/struct/union. Type is t_Struct1[10]
Is a structure containing a member of type array of structure allowed in this case ?
Both types t_Struct1 and t_Struct2 are defined in the same header.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!