Support Board
Date/Time: Tue, 25 Feb 2025 20:39:34 +0000
Post From: compiling a custom indicator for debugging
[2021-04-24 06:26:41] |
UnixManiac - Posts: 46 |
Have a look here for a possible fix for your case: Update documentation to support latest version of Visual Studio | Post: 180504 Alternatively, can i use my existing Visual Studio app? It has support for C++.
yes you can. Having VS2019 community installed I use a simple batch file to do things on my own with VSCode, hope this helps a bit. call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
@echo off if %1==debug ( echo "Compiling Debug version for %2" cl /I \include /I\Trading\SierraChart_DEV\ACS_Source /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 "%2" /link "Gdi32.lib" /DLL /DYNAMICBASE /DEBUG /INCREMENTAL:NO /OPT:REF /MACHINE:X64 /OUT:"%3" ) else ( echo "Compiling Release version for %2" cl /I \include /I\Trading\SierraChart_DEV\ACS_Source /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 "%2" /link "Gdi32.lib" /DLL /DYNAMICBASE /INCREMENTAL:NO /OPT:REF /OPT:ICF /MACHINE:X64 /OUT:"%3" ) |