Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 23:27:46 +0000



Compiling Error using Visual C++ 2010 Express

View Count: 1104

[2018-01-04 13:53:53]
User96296 - Posts: 28
Following compiling errors prevent me from updating SC since v1582.

Any suggestions? Thanks!


1>------ Build started: Project: bwVC, Configuration: Release Win32 ------
1> bwVC.cpp
1>c:\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:\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:\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:\sierrachart\acs_source\VAPContainer.h(1247) : see reference to class template instantiation 'c_VAPContainerBase<t_VolumeAtPrice>' being compiled
1> with
1> [
1> t_VolumeAtPrice=s_VolumeAtPriceV2
1> ]
1>c:\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:\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:\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:\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:\sierrachart\acs_source\VAPContainer.h(1324) : see reference to class template instantiation 'c_VAPContainerBase<t_VolumeAtPrice>' being compiled
1> with
1> [
1> t_VolumeAtPrice=s_VolumeLevelAtPrice
1> ]
1>c:\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> ]
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
[2018-01-04 14:24:51]
gomifromparis - Posts: 244
you need to compile either using an older sierrachart.h, or compile against a VS2015 or VS2017 runtime
Date Time Of Last Edit: 2018-01-04 14:24:58
[2018-01-04 15:19:27]
User96296 - Posts: 28
Great idea! gomifromparis.

Older sierrachart.h generates the same errors, but older VAPContainer.h worked since it's where the errors come from.

Thanks again.
[2018-01-04 17:24:50]
Sierra Chart Engineering - Posts: 104368
Unfortunately you do need to use the current version of Visual C++ to avoid these template errors.

We really do not recommend using an older version of VAPContainer.h which is not consistent with the SierraChart.h version you are using. You could have unexpected problems related to this. It is never anything we would even think of recommending. You are taking a chance by doing that. It could be OK, but it is not something that we would recommend.
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-01-04 17:25:16
[2018-01-04 17:50:04]
gomifromparis - Posts: 244
Any way you could rewrite the header so it's compatible with both compilers ? I'm really not sure I'm willing to try to tackle the windows universal runtime that VS2017 uses, adding another layer of dependency...
Date Time Of Last Edit: 2018-01-04 17:50:32
[2018-01-04 19:35:55]
Sierra Chart Engineering - Posts: 104368
Not really because what we have done is we have created a template base class. That is necessary for how that template class is being used.

In any case, we cannot spend any time on this.
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-01-05 03:45:22
[2018-01-04 19:44:47]
gomifromparis - Posts: 244
ok no issue.
[2018-01-04 21:49:49]
User96296 - Posts: 28
OK, I downloaded VS2017. Compiling is fine except my custom studies draw incorrect results now. There are obviously quite a few changes since v1582. I've got to fix my codes accordingly before I install current versions.

However, I'm going to stick with old version 1582 for now mainly because the old version runs faster for some reason.
[2018-01-05 03:46:17]
Sierra Chart Engineering - Posts: 104368
We would think the newer versions of Sierra Chart would be faster, but there can be other subtle reasons which are not apparent to us which could be creating the performance issue.
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-01-05 03:46:38

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account