Support Board
Date/Time: Sun, 19 Jan 2025 12:19:25 +0000
[Programming Help] - Getting error C2864 when compiling code after upgrade to latest version of Sierrachart
View Count: 2218
[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 |
[2018-02-21 23:28:40] |
Sierra Chart Engineering - Posts: 104368 |
We need to solve this and it will be out in the next release. Allow about one day for the new release. For the time being, you can update the Visual Studio to the latest release. But if you do not want to do that, that is understood. The new Visual Studio is terrible. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2018-03-04 06:33:13] |
User909904 - Posts: 14 |
Hi, I would really like to stay with the VS 2010. I saw the new release 1711. I installed it but I am still getting some errors: 1>c:\programs\sierrachart\acs_source\vapcontainer.h(337): error C2758: 'c_VAPContainerBase<t_VolumeAtPrice>::m_InitialAllocationElements' : must be initialized in constructor base/member initializer list 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeAtPriceV2 1> ] 1> c:\programs\sierrachart\acs_source\vapcontainer.h(303) : see declaration of 'c_VAPContainerBase<t_VolumeAtPrice>::m_InitialAllocationElements' 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeAtPriceV2 1> ] 1> c:\programs\sierrachart\acs_source\vapcontainer.h(336) : while compiling class template member function 'c_VAPContainerBase<t_VolumeAtPrice>::c_VAPContainerBase(const c_VAPContainerBase<t_VolumeAtPrice> &)' 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeAtPriceV2 1> ] 1> c:\programs\sierrachart\acs_source\vapcontainer.h(1249) : see reference to class template instantiation 'c_VAPContainerBase<t_VolumeAtPrice>' being compiled 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeAtPriceV2 1> ] 1>c:\programs\sierrachart\acs_source\vapcontainer.h(337): error C2614: 'c_VAPContainerBase<t_VolumeAtPrice>' : illegal member initialization: 'c_VAPContainerBase<s_VolumeAtPriceV2>' is not a base or member 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeAtPriceV2 1> ] 1>c:\programs\sierrachart\acs_source\vapcontainer.h(337): error C2758: 'c_VAPContainerBase<t_VolumeAtPrice>::m_InitialAllocationElements' : must be initialized in constructor base/member initializer list 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeLevelAtPrice 1> ] 1> c:\programs\sierrachart\acs_source\vapcontainer.h(303) : see declaration of 'c_VAPContainerBase<t_VolumeAtPrice>::m_InitialAllocationElements' 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeLevelAtPrice 1> ] 1> c:\programs\sierrachart\acs_source\vapcontainer.h(336) : while compiling class template member function 'c_VAPContainerBase<t_VolumeAtPrice>::c_VAPContainerBase(const c_VAPContainerBase<t_VolumeAtPrice> &)' 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeLevelAtPrice 1> ] 1> c:\programs\sierrachart\acs_source\vapcontainer.h(1326) : see reference to class template instantiation 'c_VAPContainerBase<t_VolumeAtPrice>' being compiled 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeLevelAtPrice 1> ] 1>c:\programs\sierrachart\acs_source\vapcontainer.h(337): error C2614: 'c_VAPContainerBase<t_VolumeAtPrice>' : illegal member initialization: 'c_VAPContainerBase<s_VolumeLevelAtPrice>' is not a base or member 1> with 1> [ 1> t_VolumeAtPrice=s_VolumeLevelAtPrice 1> ] 1> 1>Build FAILED. Thank you Josef Date Time Of Last Edit: 2018-03-04 06:59:53
|
[2018-03-04 06:42:26] |
Sierra Chart Engineering - Posts: 104368 |
You must must update Visual C++. We are not going to support compilers eight years old. That is totally and completely out of the question. Your expectation is not reasonable. And we understand that Microsoft has gone totally mad to put it mildly, and has completely botched up their Visual C++ new versions at least from our perspective, but the problem is you are running an out-of-date compiler. And also in your last post you are saying you are getting the same errors. That is not even true as anyone can plainly see. Those errors are different but still related to the fact that you are using an out of date compiler. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2018-03-04 06:54:44
|
[2018-03-04 07:03:01] |
User909904 - Posts: 14 |
What versions of the VS are currently supported?
|
[2018-03-04 07:27:57] |
Sierra Chart Engineering - Posts: 104368 |
For reasons which we would hope would be obvious, we do not know the answer to the question. We did not develop the Visual C++ compiler, so we cannot say what is the minimum required version to run the code we are using. We really do not know. How could we know? How can we possibly know when we end up using a particular C++ language feature or a particular syntax, to know what version it is going to work on? Obviously we know it works on the version we are using which is Visual C++ 2017. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2018-03-04 07:28:47
|
[2018-04-10 17:22:52] |
User366976 - Posts: 3 |
Hello support, please is possible to upgrade manual to using of new version of Visual C++ 2017 https://www.sierrachart.com/index.php?page=doc/UsingVisualCPlusPlus.php#DownloadAndInstall Thank you |
[2018-04-10 17:41:39] |
Sierra Chart Engineering - Posts: 104368 |
We are not going to invest any time in that.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: