|
fatal error C1189: #error : Must define a target architecture.
[复制链接]
D:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include\winnt.h(670) : fatal error C1189: #error : Must define a target architecture.
下面是winnt.h中的一段代码:
#define Int32x32To64(a, b) ((LONGLONG)((LONG)(a)) * (LONGLONG)((LONG)(b)))
#define UInt32x32To64(a, b) ((ULONGLONG)((DWORD)(a)) * (ULONGLONG)((DWORD)(b)))
#define Int64ShllMod32(a, b) ((ULONGLONG)(a) << (b))
#define Int64ShraMod32(a, b) ((LONGLONG)(a) >> (b))
#define Int64ShrlMod32(a, b) ((ULONGLONG)(a) >> (b))
#else
#error Must define a target architecture.//错误定位行
#endif
看了很多网上的说法,但解决不了问题!
主流说法:重新新建项目,再把代码弄进去!我试过了,不行!
还要一种说法是定义一个宏去指定所用平台,这方法我不会用!
|
|