[求助]写好插件编译时报这样的错,咋回事,你们的头文件怎么也报错 [金字塔]
- 咨询内容:
-------------------Configuration: AddinDemo - Win32 Release--------------------Compiling...Futures.cppD:\ifmin1\AddinInterface.h(16) : error C2146: syntax error : missing ';' before identifier 'm_time'D:\ifmin1\AddinInterface.h(16) : error C2501: 'time_t' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(16) : error C2501: 'm_time' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(55) : error C2146: syntax error : missing ';' before identifier 'm_timeHardenSpeed'D:\ifmin1\AddinInterface.h(55) : error C2501: 'time_t' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(55) : error C2501: 'm_timeHardenSpeed' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(57) : error C2146: syntax error : missing ';' before identifier 'm_wMarket'D:\ifmin1\AddinInterface.h(57) : error C2501: 'WORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(57) : error C2501: 'm_wMarket' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(63) : error C2146: syntax error : missing ';' before identifier 'm_timeDate'D:\ifmin1\AddinInterface.h(63) : error C2501: 'DATE' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(63) : error C2501: 'm_timeDate' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(71) : error C2146: syntax error : missing ';' before identifier 'm_wAdvance'D:\ifmin1\AddinInterface.h(71) : error C2501: 'WORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(71) : error C2501: 'm_wAdvance' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(72) : error C2146: syntax error : missing ';' before identifier 'm_wDecline'D:\ifmin1\AddinInterface.h(72) : error C2501: 'WORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(72) : error C2501: 'm_wDecline' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(73) : error C2146: syntax error : missing ';' before identifier 'm_wQT'D:\ifmin1\AddinInterface.h(73) : error C2501: 'WORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(73) : error C2501: 'm_wQT' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(80) : error C2146: syntax error : missing ';' before identifier 'm_fBuyVolume'D:\ifmin1\AddinInterface.h(80) : error C2501: 'WORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(80) : error C2501: 'm_fBuyVolume' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(81) : error C2146: syntax error : missing ';' before identifier 'm_fSellVolume'D:\ifmin1\AddinInterface.h(81) : error C2501: 'WORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(81) : error C2501: 'm_fSellVolume' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(98) : error C2146: syntax error : missing ';' before identifier 'm_timeDate'D:\ifmin1\AddinInterface.h(98) : error C2501: 'DATE' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(98) : error C2501: 'm_timeDate' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(109) : error C2146: syntax error : missing ';' before identifier 'm_nMarket'D:\ifmin1\AddinInterface.h(109) : error C2501: 'WORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(109) : error C2501: 'm_nMarket' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(144) : error C2146: syntax error : missing ';' before identifier 'm_dwVersion'D:\ifmin1\AddinInterface.h(144) : error C2501: 'DWORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(144) : error C2501: 'm_dwVersion' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(145) : error C2146: syntax error : missing ';' before identifier 'm_dwSerial'D:\ifmin1\AddinInterface.h(145) : error C2501: 'DWORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(145) : error C2501: 'm_dwSerial' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(147) : error C2146: syntax error : missing ';' before identifier 'm_wMarket'D:\ifmin1\AddinInterface.h(147) : error C2501: 'WORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(147) : error C2501: 'm_wMarket' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(149) : error C2146: syntax error : missing ';' before identifier 'm_bIsPow'D:\ifmin1\AddinInterface.h(149) : error C2501: 'BYTE' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(149) : error C2501: 'm_bIsPow' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(150) : error C2146: syntax error : missing ';' before identifier 'm_nPowType'D:\ifmin1\AddinInterface.h(150) : error C2501: 'BYTE' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(150) : error C2501: 'm_nPowType' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(151) : error C2146: syntax error : missing ';' before identifier 'm_bIsReversePrice'D:\ifmin1\AddinInterface.h(151) : error C2501: 'BYTE' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(151) : error C2501: 'm_bIsReversePrice' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(152) : error C2146: syntax error : missing ';' before identifier 'm_nDataCount'D:\ifmin1\AddinInterface.h(152) : error C2501: 'DWORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(152) : error C2501: 'm_nDataCount' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(153) : error C2146: syntax error : missing ';' before identifier 'm_nCustomCyc'D:\ifmin1\AddinInterface.h(153) : error C2501: 'WORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(153) : error C2501: 'm_nCustomCyc' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(154) : error C2146: syntax error : missing ';' before identifier 'm_nReserve'D:\ifmin1\AddinInterface.h(154) : error C2501: 'BYTE' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(154) : error C2501: 'm_nReserve' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(173) : error C2146: syntax error : missing ';' before identifier 'm_cbSize'D:\ifmin1\AddinInterface.h(173) : error C2501: 'WORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(173) : error C2501: 'm_cbSize' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(174) : error C2146: syntax error : missing ';' before identifier 'm_time'D:\ifmin1\AddinInterface.h(174) : error C2501: 'time_t' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(174) : error C2501: 'm_time' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(175) : error C2146: syntax error : missing ';' before identifier 'm_wMarket'D:\ifmin1\AddinInterface.h(175) : error C2501: 'WORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(175) : error C2501: 'm_wMarket' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(205) : error C2146: syntax error : missing ';' before identifier 'm_time'D:\ifmin1\AddinInterface.h(205) : error C2501: 'time_t' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(205) : error C2501: 'm_time' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(206) : error C2146: syntax error : missing ';' before identifier 'm_wMarket'D:\ifmin1\AddinInterface.h(206) : error C2501: 'WORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(206) : error C2501: 'm_wMarket' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(222) : error C2146: syntax error : missing ';' before identifier 'm_bMainReport'D:\ifmin1\AddinInterface.h(222) : error C2501: 'BYTE' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(222) : error C2501: 'm_bMainReport' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(223) : error C2146: syntax error : missing ';' before identifier 'm_nFlag1'D:\ifmin1\AddinInterface.h(223) : error C2501: 'BYTE' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(223) : error C2501: 'm_nFlag1' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(224) : error C2146: syntax error : missing ';' before identifier 'm_nFlag2'D:\ifmin1\AddinInterface.h(224) : error C2501: 'BYTE' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(224) : error C2501: 'm_nFlag2' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(225) : error C2146: syntax error : missing ';' before identifier 'm_nReserve'D:\ifmin1\AddinInterface.h(225) : error C2501: 'BYTE' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(225) : error C2501: 'm_nReserve' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(271) : error C2146: syntax error : missing ';' before identifier 'm_nBuySell'D:\ifmin1\AddinInterface.h(271) : error C2501: 'BYTE' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(271) : error C2501: 'm_nBuySell' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(272) : error C2146: syntax error : missing ';' before identifier 'm_nVol'D:\ifmin1\AddinInterface.h(272) : error C2501: 'WORD' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(272) : error C2501: 'm_nVol' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(301) : error C2146: syntax error : missing ';' before identifier 'm_strStatus'D:\ifmin1\AddinInterface.h(301) : error C2501: 'CString' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(301) : error C2501: 'm_strStatus' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(305) : error C2146: syntax error : missing ';' before identifier 'm_strCode'D:\ifmin1\AddinInterface.h(305) : error C2501: 'CString' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(305) : error C2501: 'm_strCode' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(306) : error C2146: syntax error : missing ';' before identifier 'm_strMarket'D:\ifmin1\AddinInterface.h(306) : error C2501: 'CString' : missing storage-class or type specifiersD:\ifmin1\AddinInterface.h(306) : fatal error C1003: error count exceeds 100; stopping compilationFuturesWindows.cppD:\ifmin1\FuturesWindows.cpp(79) : error C2228: left of '.MIN1_DATA' must have class/struct/union typeD:\ifmin1\FuturesWindows.cpp(82) : error C2228: left of '.MIN3_DATA' must have class/struct/union typeD:\ifmin1\FuturesWindows.cpp(85) : error C2228: left of '.MIN5_DATA' must have class/struct/union typeD:\ifmin1\FuturesWindows.cpp(88) : error C2228: left of '.MIN10_DATA' must have class/struct/union typeD:\ifmin1\FuturesWindows.cpp(91) : error C2228: left of '.MIN15_DATA' must have class/struct/union typeD:\ifmin1\FuturesWindows.cpp(94) : error C2228: left of '.MIN30_DATA' must have class/struct/union typeD:\ifmin1\FuturesWindows.cpp(97) : error C2228: left of '.MIN60_DATA' must have class/struct/union typeD:\ifmin1\FuturesWindows.cpp(100) : error C2228: left of '.DAY_DATA' must have class/struct/union type执行 cl.exe 时出错.Creating browse info file...BSCMAKE: error BK1506 : cannot open file '.\Release\Futures.sbr': No such file or directory执行 bscmake.exe 时出错.
- 金字塔客服:
CYC_DATA_TYPE period_data;明明创建了新对象,为什么不能调用成员?
- 用户回复:
使用VC6编译试试
- 网友回复:
就是用VC6编译的啊
- 网友回复: 你就是使用自带的例子没做任何改动编译就报这么多错误?
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容