在this instruction之后,我正在将旧版VC ++项目迁移到MSVS2017。我目前收到以下错误:
eafxisd.lib(isapi.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::exception::exception(char const * const &,int)" (__imp_??0exception@std@@QAE@ABQBDH@Z) referenced in function "public: __thiscall std::bad_alloc::bad_alloc(void)" (??0bad_alloc@std@@QAE@XZ)
这是剩下的唯一错误。有任何解决方法的想法吗?
更新: 如果与此相关,也有一些警告:
1>eafxisd.lib(isapi.obj) : warning LNK4217: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported in function "public: virtual __thiscall std::bad_alloc::~bad_alloc(void)" (??1bad_alloc@std@@UAE@XZ)
1>eafxisd.lib(isapi.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported in function "public: __thiscall std::bad_alloc::bad_alloc(class std::bad_alloc const &)" (??0bad_alloc@std@@QAE@ABV01@@Z)
我正在链接以下标准库:
eafxisd.lib
nafxisd.lib
legacy_stdio_definitions.lib
我忽略了旧版MFC库:
mfc80d.lib
mfcs80d.lib