[求助]寫好插件編譯時(shí)報(bào)這樣的錯(cuò),咋回事,你們的頭文件怎么也報(bào)錯(cuò)
作者:金字塔 來源:cxh99.com 發(fā)布時(shí)間:2015年04月24日
- 咨詢內(nèi)容:
-------------------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執(zhí)行 cl.exe 時(shí)出錯(cuò).Creating browse info file...BSCMAKE: error BK1506 : cannot open file '.\Release\Futures.sbr': No such file or directory執(zhí)行 bscmake.exe 時(shí)出錯(cuò).
- 金字塔客服:
CYC_DATA_TYPE period_data;明明創(chuàng)建了新對(duì)象,為什么不能調(diào)用成員?
- 用戶回復(fù):
使用VC6編譯試試
- 網(wǎng)友回復(fù):
就是用VC6編譯的啊
- 網(wǎng)友回復(fù):
你就是使用自帶的例子沒做任何改動(dòng)編譯就報(bào)這么多錯(cuò)誤?