Support Board
Date/Time: Sun, 24 Nov 2024 07:30:42 +0000
Error in building DLL
View Count: 1470
[2013-09-17 02:54:48] |
gabby alindogan - Posts: 49 |
Hi. I am a new paid user and am trying to graph a closing price. I followed the example in one of the tutorials "Step by step instruction to create an adv custom study" and am getting DLL build errors. Here is the code. #include "sierrachart.h" #include "scstudyfunctions.h" SCDLLName("Fx Trading Studies DLL") SCSFExport scsf_TestBars(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { sc.GraphName = "My first Graph" ; sc.SubGraph[0].Name = " Test of array"; sc.AutoLoop=1; sc.FreeDLL = 1; return; } sc.SubGraph[0][sc.Index] = sc.Close[sc.Index]; return; } Here is DLL error message. - Starting build of Custom Studies Source File: Fx.cpp. -- 22:52:27 "C:\SierraChart\CPPCompiler\bin\g++.exe" "C:\SierraChart\ACS_Source\Fx.cpp" -march=i686 -mtune=i686 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -o "C:\SierraChart\Data\Fx.dll" C:\SierraChart\ACS_Source\Fx.cpp: In function 'void scsf_TestBars(SCStudyInterfaceRef)': C:\SierraChart\ACS_Source\Fx.cpp:18:6: error: 'struct s_sc' has no member named 'SubGraph' sc.SubGraph[0].Name = " Test of array"; ^ C:\SierraChart\ACS_Source\Fx.cpp:25:6: error: 'struct s_sc' has no member named 'SubGraph' sc.SubGraph[0][sc.Index] = sc.Close[sc.Index]; ^ -- End of Build -- 22:52:28 THANKS! |
[2013-09-17 03:14:16] |
Sierra Chart Engineering - Posts: 104368 |
This is nothing more than a simple issue with the case of one of the objects. Use: sc.Subgraph 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 |
[2013-09-17 10:11:15] |
gabby alindogan - Posts: 49 |
Where do I use sc.subgraph? I already have it in there .Thanks.
|
[2013-09-17 11:11:31] |
Sierra Chart Engineering - Posts: 104368 |
You need to change: sc.SubGraph[0].Name = " Test of array"; to: sc.Subgraph[0].Name = " Test of array"; 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: