块引用 1> d:\ myhim2 \ agent \ common \ commonlib_subsystem \ src \ cdrom.cpp(222):错误C2065:'STORAGE_PROPERTY_QUERY':未宣告的识别项 1> d:\ myhim2 \ agent \ common \ commonlib_subsystem \ src \ cdrom.cpp(222):error C2146:语法错误:遗漏';' (在识别项'查'之前) 1> d:\ myhim2 \ agent \ common \ commonlib_subsystem \ src \ cdrom.cpp(222):错误C2065:'查询':未宣告的识别项 1> d:\ myhim2 \ agent \ common \ commonlib_subsystem \ src \ cdrom.cpp(223):错误C2065:'查询':未宣告的识别项 1> d:\ myhim2 \ agent \ common \ commonlib_subsystem \ src \ cdrom.cpp(223):错误C2228:'。PropertyId'的左边必须有类别/结构/等位 1 GT;型别为''unknown-type'' 1> d:\ myhim2 \ agent \ common \ commonlib_subsystem \ src \ cdrom.cpp(223):错误C2065:'StorageDeviceProperty':未宣告的识别项 1> d:\ myhim2 \ agent \ common \ commonlib_subsystem \ src \ cdrom.cpp(224):错误C2065:'查询':未宣告的识别项 1> d:\ myhim2 \ agent \ common \ commonlib_subsystem \ src \ cdrom.cpp(224):错误C2228:'。QueryType'的左边必须有类别/结构/等位 1 GT;型别为''unknown-type'' 1> d:\ myhim2 \ agent \ common \ commonlib_subsystem \ src \ cdrom.cpp(224):错误C2065:'PropertyStandardQuery':未宣告的识别项 1> d:\ myhim2 \ agent \ common \ commonlib_subsystem \ src \ cdrom.cpp(230):错误C2065:'查询':未宣告的识别项 1> d:\ myhim2 \ agent \ common \ commonlib_subsystem \ src \ cdrom.cpp(231):错误C2065:'STORAGE_PROPERTY_QUERY':未宣告的识别项 1> d:\ myhim2 \ agent \ common \ commonlib_subsystem \ src \ cdrom.cpp(231):错误C2070:''unknown-type'':sizeof运算元不合法,必须是运算式或型别名称 1个GT;正在建立浏览资讯档... 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(321):错误C2065:'STORAGE_PROPERTY_QUERY':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(321):错误C2146:语法错误:遗漏';' (在识别项'query'之前) 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(321):错误C2065:'query':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(500):错误C2065:'query':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(500):错误C2228:'。PropertyId'的左边必须有类别/结构/等位 2 - ;型别为''unknown-type'' 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(500):错误C2065:'StorageAdapterProperty':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(501):错误C2065:'query':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(501):错误C2228:'。QueryType'的左边必须有类别/结构/等位 2 - ;型别为''unknown-type'' 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(501):错误C2065:'PropertyStandardQuery':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(506):错误C2065:'query':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(507):错误C2065:'STORAGE_PROPERTY_QUERY':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(507):错误C2070:''unknown-type'':sizeof运算元不合法,必须是运算式或型别名称 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(580):错误C2065:'query':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(580):错误C2228:'。PropertyId'的左边必须有类别/结构/等位 2 - ;型别为''unknown-type'' 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(580):错误C2065:'StorageDeviceProperty':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(581):错误C2065:'query':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(581):错误C2228:'。QueryType'的左边必须有类别/结构/等位 2 - ;型别为''unknown-type'' 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(581):错误C2065:'PropertyStandardQuery':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(586):错误C2065:'query':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(587):错误C2065:'STORAGE_PROPERTY_QUERY':未宣告的识别项 2> d:\ myhim2 \ agent \ skagent \ subsystems \ him \ build \ subsystem_him \ him_hd.cpp(587):错误C2070:''unknown-type'':sizeof运算元不合法,必须是运算式或型别名称 2 - ;正在产生程式码...
答案 0 :(得分:0)
这意味着“ STORAGE_PROPERTY_QUERY ”不是有效的标识符。请参阅此处的相关文档:http://msdn.microsoft.com/en-us/library/ewcf0002(VS.80).aspx。
您需要将 WinIoCtl.h 文件添加到C ++项目中。