Support Board
Date/Time: Fri, 24 Jan 2025 13:11:12 +0000
[Programming Help] - Documentation on Compiling 64 bit custom studies
View Count: 3025
[2019-01-14 07:02:58] |
Dryheat31 - Posts: 13 |
Hi, I checked here: Developing Custom Studies and Systems for Sierra Chart and here: https://www.sierrachart.com/index.php?page=doc/UsingVisualCPlusPlus.php But I have not found documentation showing how we can create and compile custom studies to be used with the 64 bit version of Sierra Chart. Please point me in the right direction. I tried to compile some existing source code and the compiler complained about several SC elements that were not available. So I suspect I will also have to make changes to my source code in order to complete this goal. Thanks! |
[2019-01-14 07:52:51] |
User502006 - Posts: 6 |
Do you have a list of those "elements" you mention ? I ran into a couple myself and know what I did to circumvent the problem ... (read : it may be the same issue) Notice, however, that I just *did* compile for 64bits and I saw no difference for 32bits. Peter |
[2019-01-14 18:59:05] |
Sierra Chart Engineering - Posts: 104368 |
The easiest thing to do is to use the Build >> Remote Build command in Analysis >> Build Custom Studies DLL.
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: 2019-01-14 18:59:38
|
[2019-01-15 16:33:54] |
Dryheat31 - Posts: 13 |
Here is the output I get when I perform: Build >> Remote Build command in Analysis >> Build Custom Studies DLL. -- Starting remote build of Custom Studies Source files: CustomStudy.cpp. 64-bit -- 09:27:42 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: CustomStudy.cpp: In function 'void scsf_CustomStudy(SCStudyInterfaceRef)': CustomStudy.cpp:275:23: error: 'struct s_sc' has no member named 'PersistVars' int& logCounter = sc.PersistVars->Integers[0]; ^ CustomStudy.cpp:399:15: error: exception handling disabled, use -fexceptions to enable catch (char *ErrMsg) { ^ CustomStudy.cpp:400:22: error: 'ErrMsg' was not declared in this scope sc.AddMessageToLog(ErrMsg, 1); ^ CustomStudy.cpp:601:22: error: 'ErrMsg' was not declared in this scope sc.AddMessageToLog(ErrMsg, 1); ^ CustomStudy.cpp: In function 'void fillSubgraph(SCStudyInterfaceRef, SCSubgraphRef, float, float, int, int)': CustomStudy.cpp:809:76: error: '_RPT1' was not declared in this scope _RPT1(0, "Custom Line Index: %d Value: %f\n", indexA, customLine[indexA]); ^ -- End of Build -- 09:27:45 |
To post a message in this thread, you need to log in with your Sierra Chart account: