阅读:973回复:1
编译出现的错误,郁闷!
编译程序时出现这样的错误,该怎么解决啊?
"c:program filesmicrosoft visual studiovc98mfcincludeafxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds" |
|
沙发#
发布于:2004-11-12 13:49
// C1189.cpp
#undef _WIN32 #if !defined(_WIN32) #error _WIN32 must be defined // C1189 #endif int main() { return 0; } You may also see this error if you build an ATL project with the /robust MIDL compiler option. /robust is only for use when building for a Windows 2000 or later machine. So, either remove /robust or change this line in the dlldatax.c file: #define _WIN32_WINNT 0x0400 //for WinNT 4.0 or Win95 with DCOM to #define _WIN32_WINNT 0x0500 //for WinNT 4.0 or Win95 with DCOM |
|