平台:Windows 10
Qt 版本:5.15.1
例如,我想在 pro 文件中包含此路径 C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt
。
以下是我尝试过的方法:
use
$$quote()
:INCLUDEPATH += $$quote(C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt)
use
" "
:INCLUDEPATH += "C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt"
use
$$quote
and" "
together:INCLUDEPATH += $$quote("C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt")
change
\\
to/
:INCLUDEPATH += $$quote("C:/Program Files (x86)/Windows Kits/10/Include/10.0.18362.0/ucrt")
所有都不好,这是我一直得到的错误: