VS2022 unresolved external symbol "void __cdecl AfxThrowMemoryException(void)

Vishnu Gopalakrishnan 126 Reputation points
2023-02-28T08:12:42.5366667+00:00

Even if mfc and atl libraries included, below error occurs.

mfcs140u.lib(nolib.obj) : error LNK2019: unresolved external symbol "void __cdecl AfxThrowMemoryException(void)" (?AfxThrowMemoryException@@YAXXZ) referenced in function "void __cdecl ATL::AtlThrowImpl(long)" (?AtlThrowImpl@ATL@@YAXJ@Z)

Developer technologies | C++
Developer technologies | Visual Studio | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.