我已经执行某些网络IO,编译32位二进制就好移植网络代码为64位
然而,当我在编译时设置-m64选项的程序得到以下而隐蔽错误
In file included from /usr/include/sys/stream.h:22,
from /usr/include/netinet/in.h:62,
from /usr/include/sys/socket.h:221,
from operation_networkio.cc:15:
/usr/include/sys/vnode.h:241: error: overflow in array dimension
/usr/include/sys/vnode.h:241: error: size of array `pad' is too large
在我的源代码operation_networkio.cc违规线是在我的程序触发这个错误似乎是
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
可能有人开导我什么我做错误以及如何治疗? 我在Solaris上使用GCC sparc