Error

C++博客 首页 新随笔 联系 聚合 管理
  217 Posts :: 61 Stories :: 32 Comments :: 0 Trackbacks

Windows下使用VS2008编译时经常遇到macro redefinition警告或错误,如:

 

 

c:\programme\microsoft sdks\windows\v6.0a\include\ws2def.h(91) : warning C4005: 'AF_IPX' : macro redefinition

 

 

解决方法:打开编译选项 /showIncludes

Use the compiler option /showIncludes to find out how they are getting included.

 

看程序直接或者间接Include了哪些头文件,通过调整头文件顺序等办法解决。

posted on 2014-12-10 15:23 Enic 阅读(3108) 评论(0)  编辑 收藏 引用 所属分类: C/C++技巧

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理