[求助]寫好插件編譯時報這樣的錯,咋回事,你們的頭文件怎么也報錯 [金字塔]
- 咨詢內容:
-------------------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 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容