在porject->Setting->link->Input->Ignore libraries:增加 MSVCRTD.lib
然后,在Stdafx.h中添加
/* 当在Project/Setting/General中选择"Use MFC in a Static Library"时,
需要以下两条语句:*/
#pragma comment(linker, "/FORCE:MULTIPLE")
#pragma comment(linker, "/OPT:NOREF")
之后就没有错误了。
然后,在Stdafx.h中添加
/* 当在Project/Setting/General中选择"Use MFC in a Static Library"时,
需要以下两条语句:*/
#pragma comment(linker, "/FORCE:MULTIPLE")
#pragma comment(linker, "/OPT:NOREF")
之后就没有错误了。