问题描述 解决方案 将以下代码添加到出错的头文件里。 #pragma comment(lib, "d3d12.lib") #pragma comment(lib, "dxgi.lib") #pragma comment(lib, "d3dcompiler.lib")