【发布时间】:2012-03-14 10:34:39
【问题描述】:
我有以下代码:
interface ** rInterfaces[MAX_REACTANS];
_reaction->rInterfaces = (interface **)malloc(MAX_REACTANS * sizeof(interface *));
我收到一条错误消息:
error: incompatible types when assigning to type ‘struct interface **[10]’ from type ‘struct interface **’
我不知道我为什么会得到这个。任何帮助将不胜感激。
【问题讨论】:
-
什么是
_reaction?_reaction->rInterfaces是什么?
标签: c arrays pointers memory-management malloc