Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1555908
  • 博文数量: 290
  • 博客积分: 3468
  • 博客等级: 中校
  • 技术积分: 3461
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-28 22:21
文章分类

全部博文(290)

文章存档

2016年(13)

2015年(3)

2014年(42)

2013年(67)

2012年(90)

2011年(75)

分类: 嵌入式

2012-08-14 09:59:00

系统环境:ubuntu 10.04 + gcc-4.4.3

/usr/include/linux/tcp.h:72: error: ‘__u32 __fswab32(__u32)’ cannot appear in a constant-expression
/usr/include/linux/tcp.h:72: error: a function call cannot appear in a constant-expression
/usr/include/linux/tcp.h:73: error: ‘__u32 __fswab32(__u32)’ cannot appear in a constant-expression
/usr/include/linux/tcp.h:73: error: a function call cannot appear in a constant-expression
/usr/include/linux/tcp.h:74: error: ‘__u32 __fswab32(__u32)’ cannot appear in a constant-expression
/usr/include/linux/tcp.h:74: error: a function call cannot appear in a constant-expression
/usr/include/linux/tcp.h:75: error: ‘__u32 __fswab32(__u32)’ cannot appear in a constant-expression
/usr/include/linux/tcp.h:75: error: a function call cannot appear in a constant-expression
/usr/include/linux/tcp.h:76: error: ‘__u32 __fswab32(__u32)’ cannot appear in a constant-expression
/usr/include/linux/tcp.h:76: error: a function call cannot appear in a constant-expression
/usr/include/linux/tcp.h:77: error: ‘__u32 __fswab32(__u32)’ cannot appear in a constant-expression
/usr/include/linux/tcp.h:77: error: a function call cannot appear in a constant-expression
/usr/include/linux/tcp.h:78: error: ‘__u32 __fswab32(__u32)’ cannot appear in a constant-expression
/usr/include/linux/tcp.h:78: error: a function call cannot appear in a constant-expression
/usr/include/linux/tcp.h:79: error: ‘__u32 __fswab32(__u32)’ cannot appear in a constant-expression
/usr/include/linux/tcp.h:79: error: a function call cannot appear in a constant-expression
/usr/include/linux/tcp.h:80: error: ‘__u32 __fswab32(__u32)’ cannot appear in a constant-expression
/usr/include/linux/tcp.h:80: error: a function call cannot appear in a constant-expression
/usr/include/linux/tcp.h:81: error: ‘__u32 __fswab32(__u32)’ cannot appear in a constant-expression
/usr/include/linux/tcp.h:81: error: a function call cannot appear in a constant-expression
make: *** [videoadjust.o] Error 1

解决方法用
#include 替换 #include

参考链接:

阅读(2679) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

lubing5212013-01-08 16:27:13

受用了,我也遇到了