当前位置: 技术问答>linux和unix
64位下gcc编译奇怪错误 /usr/include/linux/errqueue.h:6: error: '__u32' does not name a ty
来源: 互联网 发布时间:2017-03-07
本文导语: centos5.8 x64位下编译 g++ -m64 -fPIC -pipe -Wall -Wno-deprecated -Wno-uninitialized -Wno-char-subscripts -fno-strict-aliasing -Wno-non-virtual-dtor -Wno-invalid-offsetof -Werror -O3 -g -DNO_USE_LOG4CXX -DKBE_SERVER -MMD -DKBE_CONFIG="Hybrid64" -DCODE_INLINE -D...
centos5.8 x64位下编译
g++ -m64 -fPIC -pipe -Wall -Wno-deprecated -Wno-uninitialized -Wno-char-subscripts -fno-strict-aliasing -Wno-non-virtual-dtor -Wno-invalid-offsetof -Werror -O3 -g -DNO_USE_LOG4CXX -DKBE_SERVER -MMD -DKBE_CONFIG="Hybrid64" -DCODE_INLINE -DKBE_USE_ASSERTS -D_HYBRID -I /root/kbe/kbe/src/lib -I /root/kbe/kbe/src -I /root/kbe/kbe/src/common -I /root/kbe/kbe/src/server -I /root/kbe/kbe/src/lib/third_party/tinyxml -I /root/kbe/kbe/src/lib/third_party/log4cxx/include -I/root/kbe/kbe/src/lib/third_party/openssl/include -I/root/kbe/kbe/src/lib/third_party/g3dlite -c client_interface.cpp -o Hybrid64/client_interface.o
/usr/include/linux/errqueue.h:6: error: '__u32' does not name a type
/usr/include/linux/errqueue.h:7: error: '__u8' does not name a type
/usr/include/linux/errqueue.h:8: error: '__u8' does not name a type
/usr/include/linux/errqueue.h:9: error: '__u8' does not name a type
/usr/include/linux/errqueue.h:10: error: '__u8' does not name a type
/usr/include/linux/errqueue.h:11: error: '__u32' does not name a type
/usr/include/linux/errqueue.h:12: error: '__u32' does not name a type
32位下编译没有问题, 这个64位系统下编译出这个问题, 是哪里可能有问题?
g++ -m64 -fPIC -pipe -Wall -Wno-deprecated -Wno-uninitialized -Wno-char-subscripts -fno-strict-aliasing -Wno-non-virtual-dtor -Wno-invalid-offsetof -Werror -O3 -g -DNO_USE_LOG4CXX -DKBE_SERVER -MMD -DKBE_CONFIG="Hybrid64" -DCODE_INLINE -DKBE_USE_ASSERTS -D_HYBRID -I /root/kbe/kbe/src/lib -I /root/kbe/kbe/src -I /root/kbe/kbe/src/common -I /root/kbe/kbe/src/server -I /root/kbe/kbe/src/lib/third_party/tinyxml -I /root/kbe/kbe/src/lib/third_party/log4cxx/include -I/root/kbe/kbe/src/lib/third_party/openssl/include -I/root/kbe/kbe/src/lib/third_party/g3dlite -c client_interface.cpp -o Hybrid64/client_interface.o
/usr/include/linux/errqueue.h:6: error: '__u32' does not name a type
/usr/include/linux/errqueue.h:7: error: '__u8' does not name a type
/usr/include/linux/errqueue.h:8: error: '__u8' does not name a type
/usr/include/linux/errqueue.h:9: error: '__u8' does not name a type
/usr/include/linux/errqueue.h:10: error: '__u8' does not name a type
/usr/include/linux/errqueue.h:11: error: '__u32' does not name a type
/usr/include/linux/errqueue.h:12: error: '__u32' does not name a type
32位下编译没有问题, 这个64位系统下编译出这个问题, 是哪里可能有问题?
|
没有找到 __u32 的定义?
看看在那个文件中?
或者是配置的编译选项错误?
看看在那个文件中?
或者是配置的编译选项错误?
|
32位和64位编译器版本是否相同,不相同不能说明问题
如果相同,可以使用-E看输出结果的不同
如果相同,可以使用-E看输出结果的不同