我刚刚升级到Ubuntu 9.1,自带gcc 4.4.1,但是编译我的应用程序时出现了问题:
/usr/include/linux/tcp.h:72: error: ‘__u32 __fswab32(__u32)’ cannot appear in a constant-expression
在cp.h中引起错误的行:
...
enum {
TCP_FLAG_CWR = __cpu_to_be32(0x00800000),
TCP_FLAG_ECE = __cpu_to_be32(0x00400000),
TCP_FLAG_URG = __cpu_to_be32(0x00200000),
TCP_FLAG_ACK = __cpu_to_be32(0x00100000),
...
你有什么想法可以做吗?