Closed zjzhang-cn closed 1 year ago
相同的问题,有解决方法吗
解决了,安装官网win编译jconfig.h.in所说:
/* Define "boolean" as unsigned char, not int, per Windows custom */
#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
typedef unsigned char boolean;
#endif
#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
在build.gn 或者 引入上面加入 HAVE_BOOLEAN
即可
rpcndr.h定义的boolean 会与 jmorecfg.h定义的boolean冲突
