gcc编译出现field 'xxx' has incomplete type的问题
来源:互联网 发布:json格式字符串写法 编辑:程序博客网 时间:2024/05/29 15:02
一般情况下,是由于向前引用或递归引用自身造成的,网上已经有很多讨论了,比如:
http://bbs.csdn.net/topics/200003470
http://bbs.csdn.net/topics/30097292
http://blog.csdn.net/xlfb8057/article/details/2814768
但是,最近写程序时又出现了该问题,使用前向引用
后来发现竟然是由于编译时多加了一个 -pthread 参数, 去掉就好了, 不明白为什么会出现这种现象.
另外,还可以尝试使用struct的别名来定义成员。
- gcc编译出现field 'xxx' has incomplete type的问题
- 程序编译是出现"field has incomplete type"问题的解决
- 程序编译是出现"field has incomplete type"问题的解决
- 前向定义导致 程序编译出现"field has incomplete type"问题的解决
- 编译busybox的时候出现error: field 'in' has incomplete type
- 编译busybox的时候出现error: field 'in' has incomplete type
- [C++编译]field has incomplete type
- QT编译出错 field has incomplete type
- 编译报错"field has incomplete type"
- field has incomplete type
- error: field ‘?’ has incomplete type
- error: field * has incomplete type
- 编译CEGUI时field has incomplete type Ogre::TexturePtr错误
- 编译CEGUI时field has incomplete type Ogre::TexturePtr错误
- 编译错误 --- does not name a type和field `XX' has incomplete type
- 编译错误--------:XX does not name a type和field `XX' has incomplete type
- 编译错误 --- does not name a type和field `XX' has incomplete type
- 编译错误 --- does not name a type和field `XX' has incomplete type
- 职业生涯规划(简单5步分析法)
- 职业生涯建议
- rstp流媒体服务器的搭建
- ThreadLocal工作原理
- 坑爹的不可见字符
- gcc编译出现field 'xxx' has incomplete type的问题
- 关于随机数
- LPCTSTR简介
- Ubuntu桌面生存指南 (5) --- Ubuntu常用效率软件简介
- 书单
- 张孝祥老师的话..
- Poll方法
- nutch1.2插件开发
- opencart之vqmod浅谈