将vc7的项目利用网上介绍的转换工具转成vc6,然后编译,出现错误为:
winsock2.h(99):error C2011: 'fd_set' : 'struct' type redefinition
winsock2.h(134) : warning C4005: 'FD_SET' : macro redefinition
winsock.h(83) : see previous definition of 'FD_SET'
winsock2.h(143) : error C2011: 'timeval' : 'struct' type redefinition
winsock2.h(199) : error C2011: 'hostent' : 'struct' type redefinition
............................................................
winsock2.h(2353) : error C2375: 'WSAAsyncSelect' : redefinition; different linkage
winsock2.h(824) : see declaration of 'WSAAsyncSelect'
共出现58处错误,并且都是winsock2.h函数中定义的变量或函数,请大侠们指点?!
在线上的高手,请加我:459353770
winsock2.h(99):error C2011: 'fd_set' : 'struct' type redefinition
winsock2.h(134) : warning C4005: 'FD_SET' : macro redefinition
winsock.h(83) : see previous definition of 'FD_SET'
winsock2.h(143) : error C2011: 'timeval' : 'struct' type redefinition
winsock2.h(199) : error C2011: 'hostent' : 'struct' type redefinition
............................................................
winsock2.h(2353) : error C2375: 'WSAAsyncSelect' : redefinition; different linkage
winsock2.h(824) : see declaration of 'WSAAsyncSelect'
共出现58处错误,并且都是winsock2.h函数中定义的变量或函数,请大侠们指点?!
在线上的高手,请加我:459353770
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货