Support Board
Date/Time: Sun, 12 Jan 2025 03:57:45 +0000
error for not declared in this scope
View Count: 1707
[2017-01-23 13:05:55] |
User701247 - Posts: 117 |
I find following error for not declared in this scope. Does anyone have any suggestions on what Additional Header Files should be included? Thanks you very much for any suggestions Sierra Chart Version: 1457 43 sc.Subgraph[SubgraphIndex].DrawStyle = DRAWSTYLE_SQUARE_OFFSET_LEFT_BODY; 44 sc.Subgraph[SubgraphIndex].LineWidth = 8; 45 sc.Subgraph[SubgraphIndex].DrawZeros = 0; 46 } C:\SierraChart\ACS_Source\VolumeatPriceThresholdAlertV2.cpp: In function 'void scsf_VolumeAtPriceThresholdAlertV2(SCStudyInterfaceRef)': C:\SierraChart\ACS_Source\VolumeatPriceThresholdAlertV2.cpp:43:46: error: 'DRAWSTYLE_SQUARE_OFFSET_LEFT_BODY' was not declared in this scope sc.Subgraph[SubgraphIndex].DrawStyle = DRAWSTYLE_SQUARE_OFFSET_LEFT_BODY; Date Time Of Last Edit: 2017-01-23 13:06:39
|
[2017-01-23 18:16:17] |
Sierra Chart Engineering - Posts: 104368 |
You need to update Sierra Chart following the instructions here: http://www.sierrachart.com/index.php?page=doc/download.php#FastUpdate 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 |
[2017-01-23 23:25:47] |
User701247 - Posts: 117 |
After Download Current Version, I find another error for not declared in this scope. I have inserted #include "windows.h" as Additional Header Files, and run Build Custom Studies DLL again, and still get the same error. Do you have any suggestions on how to solve this issue? Thanks you very much for any suggestions -- Starting build of Custom Studies Source files: VolumeatPriceThresholdAlertV2.cpp. -- 07:20:53 C:\Windows\system32\cmd.exe /C "C:\SierraChart\ACS_Source\VisualCCompile.Bat" C:\SierraChart\ACS_Source>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" VolumeatPriceThresholdAlertV2.cpp C:\sierrachart\acs_source\scstructures.h(6): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory -- End of Build -- 07:20:55 Date Time Of Last Edit: 2017-01-23 23:27:38
|
[2017-01-24 02:33:22] |
Sierra Chart Engineering - Posts: 104368 |
There is no need to include the Windows.h file. It is already included. Remove that. Refer to: Advanced Custom Study Interface and Language (ACSIL): Using Additional Header Files 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 |
[2017-01-24 02:57:16] |
User701247 - Posts: 117 |
After Download Current Version, when I remove #include "windows.h" as Additional Header Files, and run Build Custom Studies DLL again, and get another error. fatal error C1083: Cannot open include file: 'windows.h': No such file or directory Do you have any suggestions on how to solve this issue? Thanks you very much for any suggestions -- Starting build of Custom Studies Source files: VolumeatPriceThresholdAlertV2.cpp. -- 10:54:35 C:\Windows\system32\cmd.exe /C "D:\SierraChart\ACS_Source\VisualCCompile.Bat" C:\SierraChart\ACS_Source>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" VolumeatPriceThresholdAlertV2.cpp c:\sierrachart\acs_source\scstructures.h(6): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory -- End of Build -- 10:54:38 Under c:\sierrachart\acs_source\scstructures.h file, I find #include <windows.h> statement as shown below // File Name: scstructures.h #ifndef _SCSTRUCTURES_H_ #define _SCSTRUCTURES_H_ #include <windows.h> //Main Windows SDK header file #include <stdio.h> //This header is for input/output including File input/output #include <stdarg.h> #include <float.h> #include <io.h> #define _USE_MATH_DEFINES #include <math.h> #include <time.h> #include <stdlib.h> #include <string.h> #include <limits.h> Date Time Of Last Edit: 2017-01-24 03:42:54
|
[2017-01-24 05:17:19] |
Sierra Chart Engineering - Posts: 104368 |
This means Visual C++ is not working properly on your system. Use the "Analysis >> Build Custom Studies DLL >>Remote Build" command instead. 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 |
[2017-01-24 06:06:01] |
User701247 - Posts: 117 |
It works now for Remote Build Thanks you very much for any suggestions |
To post a message in this thread, you need to log in with your Sierra Chart account: