我參考了一些包含對平臺sdk的依賴的包含。當我將下面的行添加到我的QT造物主臨文件,並嘗試編譯它拋出混亂的錯誤:在QT Creator中包含Platform SDK
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
任何幫助是極大的讚賞
這沒有幫助的情況,但謝謝你的想法。 – Rufius 2010-11-09 17:03:56