Quantcast
Channel: C++博客-Error-随笔分类-C/C++技巧
Viewing all articles
Browse latest Browse all 8

warning C4005: 'WINVER' : macro redefinition 的解决方法

$
0
0

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了哪些头文件,通过调整头文件顺序等办法解决。



Enic 2014-12-10 15:23 发表评论

Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>