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 阅读(8428) 评论(8)  编辑 收藏 引用 所属分类: 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> 放到最前  回复  更多评论   

# re: 解决error C2011: 'fd_set' : 'struct' type redefinition问题 2009-03-31 19:46 007

谢谢啦!  回复  更多评论   

# re: 解决error C2011: 'fd_set' : 'struct' type redefinition问题 2009-04-29 17:09 创意家居

感谢,很实用。  回复  更多评论   


专题:Android  iPad jQuery Chrome OS

博客园首页  IT新闻  知识库  学英语  C++程序员招聘
标题  
姓名  
主页
验证码 *
内容(提交失败后,可以通过“恢复上次提交”恢复刚刚提交的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
[使用Ctrl+Enter键可以直接提交]
每天10分钟,轻松学英语
网站导航: