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