Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共9 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]写好插件编译时报这样的错,咋回事,你们的头文件怎么也报错

1楼
qq1mp2 发表于:2015/2/4 10:24:47
-------------------Configuration: AddinDemo - Win32 Release--------------------
Compiling...
Futures.cpp
D:\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 specifiers
D:\ifmin1\AddinInterface.h(16) : error C2501: 'm_time' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(55) : error C2501: 'm_timeHardenSpeed' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(57) : error C2501: 'm_wMarket' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(63) : error C2501: 'm_timeDate' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(71) : error C2501: 'm_wAdvance' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(72) : error C2501: 'm_wDecline' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(73) : error C2501: 'm_wQT' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(80) : error C2501: 'm_fBuyVolume' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(81) : error C2501: 'm_fSellVolume' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(98) : error C2501: 'm_timeDate' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(109) : error C2501: 'm_nMarket' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(144) : error C2501: 'm_dwVersion' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(145) : error C2501: 'm_dwSerial' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(147) : error C2501: 'm_wMarket' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(149) : error C2501: 'm_bIsPow' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(150) : error C2501: 'm_nPowType' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(151) : error C2501: 'm_bIsReversePrice' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(152) : error C2501: 'm_nDataCount' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(153) : error C2501: 'm_nCustomCyc' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(154) : error C2501: 'm_nReserve' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(173) : error C2501: 'm_cbSize' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(174) : error C2501: 'm_time' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(175) : error C2501: 'm_wMarket' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(205) : error C2501: 'm_time' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(206) : error C2501: 'm_wMarket' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(222) : error C2501: 'm_bMainReport' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(223) : error C2501: 'm_nFlag1' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(224) : error C2501: 'm_nFlag2' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(225) : error C2501: 'm_nReserve' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(271) : error C2501: 'm_nBuySell' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(272) : error C2501: 'm_nVol' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(301) : error C2501: 'm_strStatus' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(305) : error C2501: 'm_strCode' : missing storage-class or type specifiers
D:\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 specifiers
D:\ifmin1\AddinInterface.h(306) : fatal error C1003: error count exceeds 100; stopping compilation
FuturesWindows.cpp
D:\ifmin1\FuturesWindows.cpp(79) : error C2228: left of '.MIN1_DATA' must have class/struct/union type
D:\ifmin1\FuturesWindows.cpp(82) : error C2228: left of '.MIN3_DATA' must have class/struct/union type
D:\ifmin1\FuturesWindows.cpp(85) : error C2228: left of '.MIN5_DATA' must have class/struct/union type
D:\ifmin1\FuturesWindows.cpp(88) : error C2228: left of '.MIN10_DATA' must have class/struct/union type
D:\ifmin1\FuturesWindows.cpp(91) : error C2228: left of '.MIN15_DATA' must have class/struct/union type
D:\ifmin1\FuturesWindows.cpp(94) : error C2228: left of '.MIN30_DATA' must have class/struct/union type
D:\ifmin1\FuturesWindows.cpp(97) : error C2228: left of '.MIN60_DATA' must have class/struct/union type
D:\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 时出错.
2楼
qq1mp2 发表于:2015/2/4 10:41:37
CYC_DATA_TYPE period_data;明明创建了新对象,为什么不能调用成员?
3楼
王锋 发表于:2015/2/4 10:43:49
使用VC6编译试试
4楼
qq1mp2 发表于:2015/2/4 11:02:27
就是用VC6编译的啊
5楼
王锋 发表于:2015/2/4 11:38:51
你就是使用自带的例子没做任何改动编译就报这么多错误?
6楼
qq1mp2 发表于:2015/2/4 13:14:02
自带例子不会,我写了再编译就这样
7楼
王锋 发表于:2015/2/4 15:13:51
那就要看你到底改了什么东西了,这个我们不是神仙的
8楼
qq1mp2 发表于:2015/2/4 15:52:27
这样吧,我把源码给你,帮我看下,给我个QQ号码


9楼
qq1mp2 发表于:2015/2/4 16:10:55
没修改过任何原来的东西,就只是增加了自己的
共9 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.01563 s, 2 queries.