当出现如下错误时:

c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(156) : error C2632: “char”后面的“int”非法
c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(156) : warning C4091: “typedef ”: 没有声明变量时忽略“unsigned char”的左侧
c:\program files\microsoft sdks\windows\v6.0a\include\wtypes.h(1117) : error C2371: “BOOLEAN”: 重定义;不同的基类型

 

在main文件的第一行加入

#ifdef WIN32
#include <WTypes.h> // Include this first on Win (bug #35683)
#endif

相关文章:

  • 2021-11-26
  • 2021-07-29
  • 2021-08-30
  • 2021-07-26
  • 2021-12-25
  • 2021-09-12
  • 2022-02-11
猜你喜欢
  • 2022-12-23
  • 2021-12-25
  • 2021-11-20
  • 2021-09-20
  • 2021-12-05
  • 2021-06-17
相关资源
相似解决方案