Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 17:58:47 +0000



Sierra Chart doesn't find Visual C++ Compiler

View Count: 3124

[2021-08-14 18:39:06]
PS2004 - Posts: 47
Hi!
I want to debug one of my Custom Studies. I read the documentation about it, and installed Visual C++ Compiler through:
Analysis>>Build>>Install Visual C++ Compiler

Now when I click on "Build With Visual C++ - Debug", SC says:

-- Starting build of Custom Studies Source files: PS_Statistics_v2.cpp _ps_sc_functions.h. -- 20:33:20

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_Dev\ACS_Source\VisualCCompile.Bat"


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

C:\SierraChart_Dev\ACS_Source>cl /JMC /MP /analyze- /Zc:wchar_t /Z7 /Od /GS /W3 /RTC1 /Zc:inline /D "_WINDOWS" /D "_USRDLL" /D "_WINDLL" /Gd /Gy /GR- /GF /fp:precise /MTd /std:c++17 /LD /EHa /WX- /diagnostics:classic /nologo "C:\SierraChart_Dev\ACS_Source\PS_Statistics_v2.cpp" "C:\SierraChart_Dev\ACS_Source\_ps_sc_functions.h" /link "Gdi32.lib" /DLL /DYNAMICBASE /DEBUG /INCREMENTAL:NO /OPT:REF /MACHINE:X64 /OUT:"C:\SierraChart_Dev\Data\PS_Statistics_v2_64.dll"
'cl' is not recognized as an internal or external command,
operable program or batch file.
-- End of Build -- 20:33:20


How can I change the path of the folder it is referring to? ("C:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat")

I use Visual Studio 2019 Community for developing in ACSIL, and the Visual C++ Compiler's installation path is: (like in the attached picture)
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
Attachment Deleted.
imagevisual_cpp_compiler_location.png / V - Attached On 2021-08-14 18:37:58 UTC - Size: 45.03 KB - 474 views
[2021-08-17 21:31:25]
ForgivingComputers.com - Posts: 1042
Did you install Visual Studio first or the Visual C++ Compiler in the Analsis>>Build Menu? If you did you need to uninstall Visual Studio. Then install the C++ Complier, then re-install Visual Studio.
[2021-08-18 08:03:41]
User907968 - Posts: 840
Also possible without doing above steps - install the required compiler/build tools from the Visual Studio installer.

Changing the dll compiler version
Date Time Of Last Edit: 2021-08-18 08:04:14
[2021-08-18 08:39:05]
Sierra Chart Engineering - Posts: 104368
We will look this over. We are going to have to probably support different Visual C++ compiler versions. We will have to see how best to do that. Whether it can be made automatic or not.
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-08-18 08:39:14
[2021-08-18 08:50:06]
PS2004 - Posts: 47
Thanks!

I have managed to set up the Visual C++ debugging properly.
In the Visual Studio Installer I had to download the "MVSC v140 - VS 2015 C++ built tools (v14.0)" installation from the "Desktop development with C++" category (attached photo).

I think it might help other users in the future if You include this information somewhere in the documentation.
imagevisual_cpp_buildtools.png / V - Attached On 2021-08-18 08:46:23 UTC - Size: 141.09 KB - 888 views
[2021-08-18 15:19:02]
BenjFlame - Posts: 337
I confirm that the above solution also solved the problem for me.

The trio sierra/C++/visual studio is underrated.

I have some experience programming but never touched c++.
I decided to get started with ACSIL. I'm surprised how easy it is to develop things. For moderately/complicated development I find it easier than easylanguage, and even c# trading environments.
It's so easy to access data from any study!

Having access to visual studio is appealing, not the contrary.
[2021-08-19 20:36:05]
Sierra Chart Engineering - Posts: 104368
Thank you for post #6.
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-09-27 17:04:13]
User555355 - Posts: 1
Post #5 is on point.
[2021-10-07 16:42:22]
yellowandy - Posts: 20
Thank you, I had to uninstall everything and then re-install in the exact order.
[2023-02-11 20:13:04]
User223498 - Posts: 10
+1 Solution still works.

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

Login

Login Page - Create Account