Matlab GCC编译器问题

Matlab GCC编译器问题,matlab,gcc,Matlab,Gcc,我正试图通过遵循中的教程将MATLAB与ardrone连接起来。在完成“make”之后,我遇到的问题是gcc编译器,但我对此不确定 执行make后的输出: In file included from /usr/local/MATLAB/R2011b/extern/include/matrix.h:293, from /usr/local/MATLAB/R2011b/extern/include/engine.h:44, fr

我正试图通过遵循中的教程将MATLAB与ardrone连接起来。在完成“make”之后,我遇到的问题是gcc编译器,但我对此不确定

执行make后的输出:

In file included from /usr/local/MATLAB/R2011b/extern/include/matrix.h:293, from /usr/local/MATLAB/R2011b/extern/include/engine.h:44, from matlab_agent.c:29: /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include/stddef.h:149: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’ In file included from /usr/local/MATLAB/R2011b/extern/include/matrix.h:294, from /usr/local/MATLAB/R2011b/extern/include/engine.h:44, from matlab_agent.c:29: /usr/local/MATLAB/R2011b/extern/include/tmwtypes.h:798: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mwSignedIndex’ matlab_agent.c: In function ‘agent_comm_act’: matlab_agent.c:90: warning: initialization from incompatible pointer type make: [matlab_agent.o] Error 1 在/usr/local/MATLAB/R2011b/extern/include/matrix.h:293中包含的文件中, 来自/usr/local/MATLAB/R2011b/extern/include/engine.h:44, 来自matlab_代理。c:29: /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include/stddef.h:149:错误:应为“=”、“,”、“;”、”“类型定义”之前的“asm”或“属性” 在/usr/local/MATLAB/R2011b/extern/include/matrix.h:294中包含的文件中, 来自/usr/local/MATLAB/R2011b/extern/include/engine.h:44, 来自matlab_代理。c:29: /usr/local/MATLAB/R2011b/extern/include/tmwtypes.h:798:错误:应为“=”、“、”、“;”、”“mwSignedIndex”之前的asm'或“_属性” matlab_agent.c:在函数“agent_comm_act”中: matlab_agent.c:90:警告:从不兼容的指针类型初始化 make:[matlab_agent.o]错误1
以上几行代码看起来像是GCC编译器错误,任何遇到此类问题的人都请分享您的经验。

没有您的源代码,就不可能准确地知道发生了什么;我确实注意到,第149行的
typedef
是所讨论的include文件中第一个实际的C代码,这让我认为在它被包含之前的某个地方存在无意中的垃圾。例如,请参见以下代码段发生的情况:

int
#include <stddef.h>
int
#包括
(至少在我的系统上,这不会产生完全相同的错误;我不知道什么令牌会这样做。)