Login Page - Create Account

Support Board


Date/Time: Mon, 27 Jan 2025 17:19:05 +0000



Post From: Error Compiling ACSIL

[2019-02-21 12:49:48]
User40073 - Posts: 23
Hello,

I come back after 3-4 years to trade and Sierra Chart, and I like to develop some new indicator. I set all things from this link: https://www.sierrachart.com/index.php?page=doc/UsingVisualCPlusPlus.php
All setting are ok, but put these errors from sierrachart.h
This is MyCustomStudy.cpp sample code.


1>------ Build started: Project: EndreStudy, Configuration: Debug Win32 ------
1>Build started 2019.02.21. 13:35:15.
1>InitializeBuildStatus:
1> Touching "Debug\EndreStudy.unsuccessfulbuild".
1>ClCompile:
1> EndreStudy.cpp
1>c:\sierrachart\acs_source\scconstants.h(478): warning C4341: 'LINESTYLE_UNSET' : signed value is out of range for enum constant
1>c:\sierrachart\acs_source\vapcontainer.h(151): error C2253: 'c_VAPContainerBase<t_VolumeAtPrice>' : pure specifier or abstract override specifier only allowed on virtual function
1> c:\sierrachart\acs_source\vapcontainer.h(324) : see reference to class template instantiation 'c_VAPContainerBase<t_VolumeAtPrice>' being compiled
1>c:\sierrachart\acs_source\vapcontainer.h(151): error C2059: syntax error : ';'
1> c:\sierrachart\acs_source\vapcontainer.h(1262) : 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(151): error C2238: unexpected token(s) preceding ';'
1>c:\sierrachart\acs_source\vapcontainer.h(155): error C2059: syntax error : ';'
1>c:\sierrachart\acs_source\vapcontainer.h(155): error C2238: unexpected token(s) preceding ';'
1>c:\sierrachart\acs_source\vapcontainer.h(151): error C2059: syntax error : ';'
1> c:\sierrachart\acs_source\vapcontainer.h(1332) : 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(151): error C2238: unexpected token(s) preceding ';'
1>c:\sierrachart\acs_source\vapcontainer.h(155): error C2059: syntax error : ';'
1>c:\sierrachart\acs_source\vapcontainer.h(155): error C2238: unexpected token(s) preceding ';'
1>c:\sierrachart\acs_source\scstructures.h(3190): error C2864: 'n_ACSIL::s_ChartSessionTimes::UseEveningSessionTimes' : only static const integral data members can be initialized within a class
1>c:\sierrachart\acs_source\scstructures.h(3191): error C2864: 'n_ACSIL::s_ChartSessionTimes::NewBarAtSessionStart' : only static const integral data members can be initialized within a class
1>c:\sierrachart\acs_source\scstructures.h(3192): error C2864: 'n_ACSIL::s_ChartSessionTimes::LoadWeekendDataSetting' : only static const integral data members can be initialized within a class
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:02.49
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========