VS2022 unresolved external symbol "void __cdecl AfxThrowMemoryException(void)

Vishnu Gopalakrishnan 126 Reputation points

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)

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,786 questions
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
2,752 questions
{count} votes