ngaut

asm/c/c++/......

常用链接

统计

积分与排名

others

something special

经典的c/c++

朋友的网上家园

最新评论

解决error C2011: 'fd_set' : 'struct' type redefinition问题

在所有的#include <windows.h>前使用#define WIN32_LEAN_AND_MEAN,如:

#define WIN32_LEAN_AND_MEAN
#include 
<windows.h>

posted on 2007-04-23 17:15 ngaut 阅读(3958) 评论(6)  编辑 收藏 引用 所属分类: others

评论

# re: 解决error C2011: 'fd_set' : 'struct' type redefinition问题 2007-05-16 10:54 freehelp

So Cool! it's work.  回复  更多评论   

# re: 解决error C2011: 'fd_set' : 'struct' type redefinition问题 2007-09-13 14:46 sb

调整头文件的调用顺序即可  回复  更多评论   

# re: 解决error C2011: 'fd_set' : 'struct' type redefinition问题 2008-05-12 00:44 zica

多谢楼主!!!!  回复  更多评论   

# re: 解决error C2011: 'fd_set' : 'struct' type redefinition问题 2008-06-27 10:36 wang.zhiguo

厉害,一句话解决问题  回复  更多评论   

# re: 解决error C2011: 'fd_set' : 'struct' type redefinition问题 2008-07-31 03:38 fagnano

谢谢!!!  回复  更多评论   

# re: 解决error C2011: 'fd_set' : 'struct' type redefinition问题 2008-09-05 16:51 haha

还可以把 #include <winsock2.h> 放到最前  回复  更多评论   


标题  
姓名  
主页
验证码 *
内容(提交失败后,可以通过“恢复上次提交”恢复刚刚提交的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
[使用Ctrl+Enter键可以直接提交]
相关链接:
网站导航: