我正在调用批处理文件来调用此代码
@echo off
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
set compilerflags=/Od /Zi /EHsc
set linkerflags=/OUT:box.exe
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe" %compilerflags% boxdemo.cpp /link %linkerflags%
我尝试使用/I
设置包含目录,但它们不会被接收。
我的c_cpp_properties.json文件也有包含但仍然失败。
{
"configurations": [
{
"name": "Win32",
"includePath": ["C:/PROGRAM FILES (X86)/WINDOWS KITS/10/INCLUDE/10.0.14393.0/UCRT","C:/PROGRAM FILES (X86)/WINDOWS KITS/10/INCLUDE/10.0.14393.0/UM","C:/DirectXCode/imgui-master","c:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include","C:/Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/um"],
"browse" : {
"limitSymbolsToIncludedHeaders" : true,
"databaseFilename" : ""
}
}
]
}
我得到了
致命错误C1034:d3d11.h:构建时没有包含路径