Login Page - Create Account

Support Board


Date/Time: Sun, 23 Feb 2025 14:29:46 +0000



[Programming Help] - Build Advanced Custom Studies-

View Count: 1324

[2021-02-11 13:43:35]
User667570 - Posts: 5
Hello, I have followed the instructions in installing C++ build tools, and have visual studio code 2019 on my computer. I am trying to compile an advanced custom study dll, however when I try to Build With Visual C++ -Release, the following error message comes up in Build Ouput:

"-- Starting build of Custom Studies Source files: EIAIntegratedIndicator.cpp. -- 08:31:24

The Visual C++ compiler is not installed. Select 'Build >> Install Visual C++ Compiler' to download and install the compiler.
C:\Windows\system32\cmd.exe /C "C:\SierraChart\ACS_Source\VisualCCompile.Bat"


C:\SierraChart\ACS_Source>call "C:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
The system cannot find the path specified.

C:\SierraChart\ACS_Source>cl /Zc:wchar_t /GS /GL /W3 /O2 /Zc:inline /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_WINDLL" /Oy /Gd /Gy /Oi /GR- /GF /Ot /fp:precise /MT /std:c++17 /LD /EHa /WX- /nologo "C:\SierraChart\ACS_Source\EIAIntegratedIndicator.cpp" /link "Gdi32.lib" /DLL /DYNAMICBASE /INCREMENTAL:NO /OPT:REF /OPT:ICF /MACHINE:X64 /OUT:"C:\SierraChart\Data\EIAIntegratedIndicator_64.dll"
'cl' is not recognized as an internal or external command,
operable program or batch file.
-- End of Build -- 08:31:25"

After checking the file path I can confirm my version of Visual Studio and and Microsoft Visual C++ Buildtools are saved under 'Program Files(x86)', and the .bat file the file path looks to be trying to reference should be "C:\Program Files (x86)\Microsoft Visual Studio\VC\vcvarsall.bat".

Please can you advise on how to correct this, I don't seem to be able to alter these file paths? I've tried copying the Microsoft Visual Studio folder into 'Program Files' and renaming it 'Microsoft Visual Studio 14.0', though have been met with further errors.
[2021-02-11 14:02:33]
Sierra Chart Engineering - Posts: 104368
The path is determined from this environment variable:
VS140COMNTOOLS

Can you see what environment variable is on your system, which points to:
"C:\Program Files (x86)\Microsoft Visual Studio\VC\vcvarsall.bat".

And then let us know.
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: 2021-02-11 14:02:46
[2021-02-11 14:35:07]
User667570 - Posts: 5
Thanks for the quick reply. I am afraid I am still relatively new to this, so may need more explanation. From process explorer on Visual Studio I found this:

VS140COMNTOOLS  C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\

I am only using Notepad++ to code, so am surprised visual studio is being involved.
[2021-02-11 15:48:20]
User667570 - Posts: 5
There are no environmental variables with that address, Sierra Charts appears to be calling something different to the VS140COMNTOOLS value.
[2021-02-11 22:57:58]
Sierra Chart Engineering - Posts: 104368
That is the environment variable what Sierra Chart is looking up. If it is not found, we are using a default path but that clearly is wrong. Do you see any environment variable which would indicate the path to the Visual C++ build tools.

You can also use Remote Build:
Advanced Custom Study Interface and Language (ACSIL): Step-By-Step Instructions to Create an Advanced Custom Study Function
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
[2021-02-11 23:04:03]
User667570 - Posts: 5
Update, I've resolved this problem. The error was because I installed Visual Studio first and C++ buildtools second, and didn't realise the dependency of sierra in needing to have visual studio too.

This could be made clearer in the documentation.

The following thread was useful in resolving this:
VisualCCompile.Bat calls vcvarsall.bat not installed
Date Time Of Last Edit: 2021-02-11 23:04:30
[2021-02-11 23:16:02]
User667570 - Posts: 5
The VS140COMNTOOLS was ok in the end, and is still 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\'.

The problem was without Visual Studio, I didn't have a C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC folder where the common tools path led, in order for the build function to call vcvarsall.bat.
Date Time Of Last Edit: 2021-02-11 23:16:22

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

Login

Login Page - Create Account