gpt4 book ai didi

c++ - 在 QT Creator 中包含 Platform SDK

转载 作者:行者123 更新时间:2023-11-28 08:25:45 25 4
gpt4 key购买 nike

我引用了一些依赖于平台 sdk 的包含。当我将以下行添加到我的 QT Creator Pro 文件并尝试编译时,它会抛出令人困惑的错误:

INCLUDEPATH += "C:\Program Files\Microsoft Platform SDK\Include"

错误是:

c:\Program Files\Microsoft Platform SDK\Include/winnt.h:666: error: #error Must define a target architecture.

c:\Program Files\Microsoft Platform SDK\Include/oaidl.h:442: error: pasting "/" and "/" does not give a valid preprocessing token

c:\Program Files\Microsoft Platform SDK\Include/oaidl.h:457: error: pasting "/" and "/" does not give a valid preprocessing token

c:\Program Files\Microsoft Platform SDK\Include/propidl.h:310: error: pasting "/" and "/" does not give a valid preprocessing token

c:\Program Files\Microsoft Platform SDK\Include/oaidl.h:442: error: expected unqualified-id before '/' token

c:\Program Files\Microsoft Platform SDK\Include/oaidl.h:457: error: expected unqualified-id before '/' token

c:\Program Files\Microsoft Platform SDK\Include/propidl.h:310: error: expected unqualified-id before '/' token

非常感谢任何帮助

最佳答案

尝试将\替换为/。

关于c++ - 在 QT Creator 中包含 Platform SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4135681/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com