未解析的外部符号“public: __cdecl std::exception::exception(char const * const &,int)”(??0exception@std@@QEAA@AEBQEBDH@Z)

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

我正在将旧版 VC++ 项目迁移到 MSVS 2022。我当前收到以下错误:

nafxis.lib(isapi.obj): LNK2019  unresolved external symbol "public: __cdecl std::exception::exception(char const * const &,int)" (??0exception@std@@QEAA@AEBQEBDH@Z) referenced in function "public: __cdecl std::bad_alloc::bad_alloc(void)" (??0bad_alloc@std@@QEAA@XZ)

我在最新的 VS2022 中找不到库 nafxis.lib,你能帮我解决这个问题吗?

我尝试使用库:nafxcw.lib,它存在于 C:\Program Files\Microsoft Visual Studio�2\Community\VC\Tools\MSVC .36.32532 tlmfc\lib\x64 中,但它没有解决问题。

c++ windows visual-studio visual-studio-2022 linker-errors
1个回答
0
投票

来自博客: https://learn.microsoft.com/en-us/archive/blogs/jpsanders/chttpserver-not-included-in-visual-studio-2008

MFC ISAPI 类已从 VS 2008 中删除。我建议您转换为直接 ISAPI 调用,因为实际上这些类只是 ISAPI API 的一个非常薄的包装器。

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