|
遇到了一个特别奇怪的问题,在程序里添加了一个结构体- struct invite_mutex{
- pthread_mutex_t mutex;
- char no[MAX_NO];
- struct channel *chan;
- };
复制代码 但是无论怎样,编译的时候都报错:- res_features.c:927: error: expected specifier-qualifier-list before use_ast_mutex_t_instead_of_pthread_mutex_t
- res_features.c: In function accept_invite:
- res_features.c:942: error: struct invite_mutex has no member named chan
- res_features.c:946: error: struct invite_mutex has no member named mutex
- res_features.c:952: error: struct invite_mutex has no member named no
- res_features.c:954: error: struct invite_mutex has no member named mutex
- res_features.c: In function builtin_invite :
- res_features.c:971: error: struct invite_mutex has no member named mutex
- res_features.c:971: error: expected expression before { token
- res_features.c:984: error: struct invite_mutex has no member named mutex
- res_features.c:985: error: struct invite_mutex has no member named chan
- make[1]: *** [res_features.o] Error 1
复制代码
感觉问题很奇怪, 从来没有遇到过, google了一下, 有说是内核头文件的bug, 但是就是没有找到解决的办法
高手指点下,谢谢 |
|