一个MFC的project,用Use MFC in a Shared DLL编译、运行都没问题。
用Use MFC in a Static Library编译时出现错误:
Compiling...
StdAfx.cpp
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
Error executing cl.exe.
随后在Project Options:中加入/MD参数,编译OK,但运行的时候弹出‘遇到问题需要关闭。我们对此引起的不便表示抱歉。’的错误窗口。
怎么办?
用Use MFC in a Static Library编译时出现错误:
Compiling...
StdAfx.cpp
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
Error executing cl.exe.
随后在Project Options:中加入/MD参数,编译OK,但运行的时候弹出‘遇到问题需要关闭。我们对此引起的不便表示抱歉。’的错误窗口。
怎么办?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货