Support Board
Date/Time: Sun, 19 Jan 2025 15:08:17 +0000
Post From: Getting error C2864 when compiling code after upgrade to latest version of Sierrachart
[2018-02-21 21:30:32] |
User909904 - Posts: 14 |
Hi, I am getting error C2864 when compiling code after upgrade to latest version of Sierrachart. Previously I was using version 1580 with which the code compiles fine. After upgrade to version 1705 I get following: 1>c:\programs\sierrachart\acs_source\scconstants.h(1618): error C2864: 's_MarketDepthEntry::Price' : only static const integral data members can be initialized within a class 1>c:\programs\sierrachart\acs_source\scconstants.h(1619): error C2864: 's_MarketDepthEntry::Quantity' : only static const integral data members can be initialized within a class 1>c:\programs\sierrachart\acs_source\scconstants.h(1620): error C2864: 's_MarketDepthEntry::NumOrders' : only static const integral data members can be initialized within a class 1>c:\programs\sierrachart\acs_source\scstructures.h(2854): error C2864: 'n_ACSIL::s_BarPeriod::ChartDataType' : only static const integral data members can be initialized within a class 1>c:\programs\sierrachart\acs_source\scstructures.h(2855): error C2864: 'n_ACSIL::s_BarPeriod::IntradayChartBarPeriodType' : only static const integral data members can be initialized within a class 1>c:\programs\sierrachart\acs_source\scstructures.h(2856): error C2864: 'n_ACSIL::s_BarPeriod::IntradayChartBarPeriodParameter1' : only static const integral data members can be initialized within a class 1>c:\programs\sierrachart\acs_source\scstructures.h(2857): error C2864: 'n_ACSIL::s_BarPeriod::IntradayChartBarPeriodParameter2' : only static const integral data members can be initialized within a class 1>c:\programs\sierrachart\acs_source\scstructures.h(2858): error C2864: 'n_ACSIL::s_BarPeriod::IntradayChartBarPeriodParameter3' : only static const integral data members can be initialized within a class 1>c:\programs\sierrachart\acs_source\scstructures.h(2859): error C2864: 'n_ACSIL::s_BarPeriod::IntradayChartBarPeriodParameter4' : only static const integral data members can be initialized within a class 1>c:\programs\sierrachart\acs_source\scstructures.h(2860): error C2864: 'n_ACSIL::s_BarPeriod::HistoricalChartBarPeriodType' : only static const integral data members can be initialized within a class 1>c:\programs\sierrachart\acs_source\scstructures.h(2861): error C2864: 'n_ACSIL::s_BarPeriod::HistoricalChartDaysPerBar' : only static const integral data members can be initialized within a class I am using MS Visual Studio 2010 V 10.0.40219.1 SP1Rel I did some research but did not find any relevant help. Any idea how to fix it? Thanks Josef |