/gcc-4.3.3/build_mips/staging_dir/usr/include/bits/socket.h:271: error: expected initializer before 'throw'
gcc version: 4.3.3
uclibc version: uClibc-0.9.30
route: gcc-4.3.3/toolchain_build_mips/uClibc-0.9.30/libc/sysdeps/linux/mips/bits/socket.h
bug fix information:
Index: libc/sysdeps/linux/mips/bits/socket.h
===================================================================
--- libc/sysdeps/linux/mips/bits/socket.h (revision 24233)
+++ libc/sysdeps/linux/mips/bits/socket.h (working copy)
@@ -268,8 +268,8 @@
+ CMSG_ALIGN (sizeof (struct cmsghdr)))
#define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
-extern struct cmsghdr * __NTH (__cmsg_nxthdr (struct msghdr *__mhdr,
- struct cmsghdr *__cmsg)) __THROW;
+extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr,
+ struct cmsghdr *__cmsg) __THROW;
libc_hidden_proto(__cmsg_nxthdr)
#ifdef __USE_EXTERN_INLINES
# ifndef _EXTERN_INLINE
本文记录了一次使用GCC 4.3.3编译过程中遇到的错误:在mips架构下,socket.h文件中出现的'error: expected initializer before 'throw''错误。详细介绍了错误发生的位置、涉及的软件版本及修改前后的代码对比。
554

被折叠的 条评论
为什么被折叠?



