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了哪些头文件,通过调整头文件顺序等办法解决。
本文提供了解决在Windows环境下使用VS2008编译时遇到的宏定义重复警告的方法,通过查看并调整头文件的包含顺序来解决问题。
2952

被折叠的 条评论
为什么被折叠?



