This error occurs when MFC or ATL is required for a build, but it wasn't found. MFC and ATL libraries aren't installed by default when you install a C++ workload in Visual Studio. To fix the error, make sure the right versions of MFC and ATL libraries for your build toolset are installed. There are versions of MFC for each version of the C++ build tools, for each target platform, and with or without Spectre mitigations. For example, C++ MFC for latest v143 build tools (x86 and 圆4) has the x86 and 圆4 libraries without Spectre mitigations for the latest version of Visual Studio 2022 (v143). If you simply want to use the latest libraries for a given version of a Visual Studio toolset, you need C++ MFC for latest build tools () for non-Spectre builds and C++ MFC for latest build tools with Spectre Mitigations () for Spectre mitigated builds. Choose the correct option for your target platform architecture. The others are for cases where you're specifically targeting an earlier toolset. In most cases, you want to select MFC for the latest build tools.Select the MFC components that match your project targets, such as x86 or ARM64EC.Enter MFC in the Search components box.Select the Individual components tab at the top of the dialog box.Ĭhoose the Modify button next to the version of Visual Studio you use.For more information, see MFC Library Versions. Make sure the version, targets, and Spectre mitigations of the MFC components you install match the toolset version, targets, and Spectre mitigations required by the project you're building.Enter ATL in the Search components box.Select the ATL components that match your project targets, such as x86 or ARM64EC.Select the components with Spectre mitigations if you build your projects with Spectre mitigations enabled.In most cases, you want to select ATL for the latest build tools. Your organization or project may require a specific, earlier version of the toolset. Make sure the version, targets, and Spectre mitigations of the ATL components you install match the toolset version, targets, and Spectre mitigations required by the project you're building.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |