我正在尝试使用 Visual Studio 2010(32 位)编译 SkyFireEMU(https://github.com/ProjectSkyfire/SkyFireEMU),但出现错误(在“worldserver”的几乎所有文件上):
fatal error C1189: #error : sizeof(void *) is neither sizeof(int) nor sizeof(long) nor sizeof(long long)
这让我重新回到了代码的平静:
#if SIZEOF_CHARP == SIZEOF_INT
typedef int intptr;
#elif SIZEOF_CHARP == SIZEOF_LONG
typedef long intptr;
#elif SIZEOF_CHARP == SIZEOF_LONG_LONG
typedef long long intptr;
#else
#error sizeof(void *) is neither sizeof(int) nor sizeof(long) nor sizeof(long long)
#endif
有人可以帮我解决这个问题吗?错误是什么意思?我真的不知道出了什么问题。