Login Page - Create Account

Support Board


Date/Time: Fri, 07 Aug 2020 03:20:39 +0000



ACSIL Compile error

[2015-07-05 20:12:25]
User15952 - Posts: 130 | Ending Date: 2021-04-26
I have a dll that was compiled a while back is currently working no problem. I would like to make a small change. Without even making changes when I try and compile the working version I am getting error messages. It seems there has been structure changes to ACSIL.

below is the compile error, help would be appreciated. Thanks



-- Starting build of Custom Studies Source files: pvr.cpp. -- 16:11:35

"C:\SierraChart\CPPCompiler\bin\g++.exe" "C:\SierraChart\ACS_Source\pvr.cpp" -march=i686 -mtune=i686 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -std=gnu++11 -o "C:\SierraChart\Data\pvr.dll"

C:\SierraChart\ACS_Source\pvr.cpp: In function 'void scsf_BarNumbering(SCStudyInterfaceRef)':
C:\SierraChart\ACS_Source\pvr.cpp:172:8: error: 'class s_UseTool' has no member named 'UseRelativeValue'
Tool.UseRelativeValue= true;
^
C:\SierraChart\ACS_Source\pvr.cpp: In function 'void scsf_GetExcelData(SCStudyInterfaceRef)':
C:\SierraChart\ACS_Source\pvr.cpp:310:6: error: 'struct s_sc' has no member named 'DeleteLineOrText'
sc.DeleteLineOrText(sc.ChartNumber, TOOL_DELETE_CHARTDRAWING, j);
^
C:\SierraChart\ACS_Source\pvr.cpp: In function 'void ReloadRaysFromFile(SCStudyInterfaceRef)':
C:\SierraChart\ACS_Source\pvr.cpp:1562:11: error: 'struct s_sc' has no member named 'GetChartDrawing'
if(sc.GetChartDrawing(0, DRAWING_LINE, Tool, i))
^
C:\SierraChart\ACS_Source\pvr.cpp: In function 'void SaveRaysInFile(SCStudyInterfaceRef)':
C:\SierraChart\ACS_Source\pvr.cpp:1794:9: error: 'struct s_sc' has no member named 'GetChartDrawing'
if(sc.GetChartDrawing(0, DRAWING_LINE, Tool, i))
^
C:\SierraChart\ACS_Source\pvr.cpp: In function 'void RunEveryBarDeGup(SCStudyInterfaceRef)':
C:\SierraChart\ACS_Source\pvr.cpp:2149:5: error: 'struct s_sc' has no member named 'DeleteLineOrText'
sg.DeleteLineOrText(sg.ChartNumber, TOOL_DELETE_ALL, 0);
^
C:\SierraChart\ACS_Source\pvr.cpp: In function 'void RunEveryDayDeGup(SCStudyInterfaceRef)':
C:\SierraChart\ACS_Source\pvr.cpp:2356:7: error: 'struct s_sc' has no member named 'DeleteLineOrText'
sg.DeleteLineOrText(sg.ChartNumber, TOOL_DELETE_CHARTDRAWING, j);
^
C:\SierraChart\ACS_Source\pvr.cpp:2398:5: error: 'struct s_sc' has no member named 'DeleteLineOrText'
sg.DeleteLineOrText(sg.ChartNumber, TOOL_DELETE_ALL, 0);
^
C:\SierraChart\ACS_Source\pvr.cpp: In function 'void UpdateBarsDataInRealTime(SCStudyInterfaceRef, int)':
C:\SierraChart\ACS_Source\pvr.cpp:2568:6: error: 'struct s_sc' has no member named 'DeleteLineOrText'
sg.DeleteLineOrText(sg.ChartNumber,TOOL_DELETE_CHARTDRAWING, 4000001);
^
C:\SierraChart\ACS_Source\pvr.cpp: In function 'void scsf_ShiftedVolume(SCStudyInterfaceRef)':
C:\SierraChart\ACS_Source\pvr.cpp:3210:5: error: 'struct s_sc' has no member named 'DeleteLineOrText'
sg.DeleteLineOrText(sg.ChartNumber,TOOL_DELETE_CHARTDRAWING, 5000001);
^
C:\SierraChart\ACS_Source\pvr.cpp:3211:5: error: 'struct s_sc' has no member named 'DeleteLineOrText'
sg.DeleteLineOrText(sg.ChartNumber,TOOL_DELETE_CHARTDRAWING, 5000002);
^
C:\SierraChart\ACS_Source\pvr.cpp: In function 'void DrawFormationRT(SCStudyInterfaceRef, bool)':
C:\SierraChart\ACS_Source\pvr.cpp:3709:5: error: 'struct s_sc' has no member named 'DeleteLineOrText'
sg.DeleteLineOrText(sg.ChartNumber,TOOL_DELETE_CHARTDRAWING, 4000000);
^
C:\SierraChart\ACS_Source\pvr.cpp: In function 'void scsf_CountDownRisk(SCStudyInterfaceRef)':
C:\SierraChart\ACS_Source\pvr.cpp:3910:9: error: 'class s_UseTool' has no member named 'UseRelativeValue'
Tool.UseRelativeValue = false;
^
C:\SierraChart\ACS_Source\pvr.cpp:3915:9: error: 'class s_UseTool' has no member named 'UseRelativeValue'
Tool.UseRelativeValue = true;
^
-- End of Build -- 16:11:37
Date Time Of Last Edit: 2015-07-05 20:13:25
[2015-07-05 20:44:00]
Sierra Chart Engineering - Posts: 88410 | Ending Date: 2021-04-05
These have been renamed and the changes are documented here:
https://www.sierrachart.com/index.php?page=doc/Whats_New.php

Also refer to this page for the new names:
http://www.sierrachart.com/index.php?page=doc/doc_ACSILDrawingTools.html
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.

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

Login

Login Page - Create Account