Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 10:58:57 +0000



Can't compile header files in SierraCharts built in compiler

View Count: 1082

[2016-11-11 19:42:58]
doubletop11 - Posts: 5
So I'm still having this issue. When I try to build out multiple .cpp files in SierraChart (4 to be exact) I'm getting a 'cl' not found error. So then I thought maybe I can just put it all into one file and turn the .cpp files into headers. So when I build out one single file that have 3 different header files it won't compile in Sierra charts. It keeps giving me errors saying that parts of the code was "was not declared in this scope". The file that I'm building is the security .cpp file that has the other indicator code as .h files so everything should be inline. I'm declaring the additional header
files before I declare sierrachart.h

#include "apa.h"
#include "apa_zones.h"
#include "apa_time.h"
#include "sierrachart.h"

SCDLLName("APA Zones")

Any thoughts??? or do I need to rebuild it all in Visual studio everytime?
[2016-11-11 19:52:57]
Sierra Chart Engineering - Posts: 104368
We cannot help with this:
"was not declared in this scope"

You will need to determine and resolve the problem.


The best solution is to just put all of the code within a single CPP file and compile it on the latest version using Analysis >> Build Custom Studies DLL >> Remote Build
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:

Login

Login Page - Create Account