error: expected specifier-qualifier-list before xxx (a structure )
来源:互联网 发布:spark mail windows 编辑:程序博客网 时间:2024/05/21 06:14
when I try to define a LIST_NODE structure in a my code,
it's alert "error: expected specifier-qualifier-list before LIST_NODE", which following so many error info:
error: ‘LIST_NODE’ has no member named ‘next’error: ‘LIST_NODET’ has no member named ‘previous’error: ‘LIST_NODE’ has no member named ‘previous’
I was astonished for a minutes:
typedef struct LIST_NODE{ void *data; LIST_NODE *next; LIST_NODE *previous;} LIST_NODE;
yeah, I found the error!
the structure is unnamed yet. I should gave it name so it can refer to itself
modified as follow, then erverthing would be ok:
typedef struct LIST_NODE{ void *data; struct LIST_NODE *next; struct LIST_NODE *previous;} LIST_NODE;
good luck!
- error: expected specifier-qualifier-list before xxx (a structure )
- error: expected specifier-qualifier-list before xxx (a structure )
- error: expected specifier-qualifier-list before ‘uint8_t’
- Expected specifier-qualifier-list before
- expected specifier-qualifier-list before
- expected specifier-qualifier-list before
- 编译出现问题error: expected specifier-qualifier-list before ‘(’ token
- 错误: expected specifier-qualifier-list before ‘GTypeInstance’
- expected specifier-qualifier-list before sockaddr_in
- expected specifier-qualifier-list before 'size_t'
- expected specifier-qualifier-list before ‘uint16_t’
- expected specifier-qualifier-list before 'size_t'
- 编译错误:expected specifier-qualifier-list before
- /usr/include/linux/if_ppp.h:117: error: expected specifier-qualifier-list before 'aligned_u64' 解决方式
- include/linux/if_ppp.h:135: error: expected specifier-qualifier-list before 'aligned_u64'
- linux内核编译报错1- error: expected specifier-qualifier-list before 'u_quad_t'
- 报错expected specifier-qualifier-list before ‘uint32_t‘
- 【错误总结】expected specifier-qualifier-list before sth
- 在codeblocks里使用hadoop c API
- 如何查看Eclipse的数字版的版本
- 函数指针数组的妙用
- 活动图与流程图的区别
- iis http 500 内部服务器错误
- error: expected specifier-qualifier-list before xxx (a structure )
- uboot源码分析(4)
- IE6下div图片下边4px空隙bug的解决办法
- CodeSmith Professional 5.0.1 KeyGen
- AIX 系统更换IBM小机硬盘
- ActivityGroup的子activity响应back事件的顺序问题
- DateDemo
- android 游戏开发
- DATA - RANGE OF