未解决的std::异常::异常(char const * const &,int)

问题描述 投票:0回答:1

按照此说明,我将旧版 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
    
c++ windows visual-studio compiler-errors linker
1个回答
0
投票
我也遇到类似的问题,请问怎么解决的? 请让我知道解决方案。 谢谢, 普加

© www.soinside.com 2019 - 2024. All rights reserved.