type
status
date
slug
summary
tags
category
icon
password

1、问题界面

出现这个的主要原因是安装 Windows SDK 时版本出错,需要根据自己的 windows 版本选择安装对应版本的 Windows SDK
notion image
VS2022 包括的版本如下: Windows版本 Windows SDK版本
Windows 10 版本 1903 Windows 10 SDK 版本 1903 (10.0.18362.1) Windows 10 版本 2004 Windows 10 SDK 版本 2004 (10.0.19041.0) Windows 10 版本 21H2 Windows 10 SDK 版本 2104 (10.0.20348.0) Windows 11 版本 适用于 Windows 11 的 Windows SDK (10.0.22000.194)
 

2、产看Windows版本 按windows按键+R打开运行窗口输入winver并回车出现以下详情界面

notion image
notion image

3、解决方法 1)先卸载原来所有的 Windows SDK 版本

点击开始选择控制面板中的程序和功能,找到原有的 Windows SDK 并卸载。
notion image
2)打开VS2022随便进入一个C++项目中,选择 “工具”->“获取工具和功能”->“单个组件”
选中其中一个跟自己系统所对应的版本安装 需要注意的是不能同时安装多个版本,不然会造成参数出错
notion image
3)到这一步问题已经解决,重启VS2022,新建控制台测试即可。
notion image
 
经济学名词[Visual studio] fatal error LNK1169: one or more multiply defined symbols found
Loading...