我在我程序的stdafx.h里面加上afxsock.h,当写了CSocket sock;就报错:
…\include\winsock2.h(99) : error C2011: 'fd_set' : 'struct' type redefinition
…\include\winsock.h(83) : see previous definition of 'FD_SET'
但在别人的程序里面加没有问题,这是怎么回事??我的afxsock.h里面还包含头文件#include <atlbase.h>,,#include <atlcom.h>
…\include\winsock2.h(99) : error C2011: 'fd_set' : 'struct' type redefinition
…\include\winsock.h(83) : see previous definition of 'FD_SET'
但在别人的程序里面加没有问题,这是怎么回事??我的afxsock.h里面还包含头文件#include <atlbase.h>,,#include <atlcom.h>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货