Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 10:53:44 +0000



[Programming Help] - VisualCCompile.Bat calls vcvarsall.bat not installed

View Count: 2250

[2019-12-26 16:30:31]
HinckleyBob - Posts: 45
Using the detailed instructions provided, the Visual C Compiler was installed. Attempting to run the script called by the Build Menu Item "...Build with Debug", the following output was presented in the Build Output:
-- Starting build of Custom Studies Source files: SetupHVAs(v2).cpp. -- 10:50:46

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

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

The vcvarsall.bat is not on the C: drive in any directory.
But the Windows install log says MS VC++ Build Tools was installed running the file downloaded by your page http://go.microsoft.com/fwlink/?LinkId=691126, visualcppbuildtools_full.exe on 12/23/19.

How can the appropriate version of the compiler be installed, or how can the installation be used to debug?

Thank you, and Happy New Year.
Bob
[2019-12-26 17:16:54]
Sierra Chart Engineering - Posts: 104368
If you do not have this file :
"vcvarsall.bat"
anywhere on your drive where Visual C++ was installed we do not know how to help because Visual C++ is not a program we can support.
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: 2019-12-26 17:17:23
[2019-12-27 03:48:09]
bradh - Posts: 854
The installation sequence is important, and it may not be clear in the documentation.

If you installed Visual Studio before doing Analysis>>Build>>Install Visual C++ Compiler then it will not work. You have to install Visual Studio second. If this happened to you, then uninstall Visual Studio. Run the Install Visual C++ Compiler command from the Analysis Menu, then reinstall Visual Studio.

If on the other hand you have not installed Visual Studio, but you installed the compiler, then go to visualstudio.microsoft.com and install the free Community Edition.
[2019-12-29 07:46:04]
User701453 - Posts: 176
If you do not have this file :
"vcvarsall.bat"
anywhere on your drive where Visual C++ was installed we do not know how to help because Visual C++ is not a program we can support.
Yet we have to use Visual Studio C++ for professional development/debugging because SC after all these years have not been able to develop their own development/debugging environment.
Even IDE optimizations of input variables is still impossible.
[2019-12-29 14:28:08]
HinckleyBob - Posts: 45
The learning curve is substantial for an amateur programmer, despite familiarity with C. But in my, possibly naive view, there is little value in attempting to provide a different IDE. It is well supported, very popular, and an excellent tool.

Bob
[2019-12-29 16:13:44]
bradh - Posts: 854
because SC after all these years have not been able to develop their own development/debugging environment.

Really? Why would Sierra spend time doing that when they can be improving their product? The Visual Studio IDE can be overwhelming at first, but it does the job quite well, and it is free.
[2019-12-29 16:58:11]
User701453 - Posts: 176
Really? Why would Sierra spend time doing that when they can be improving their product? The Visual Studio IDE can be overwhelming at first, but it does the job quite well, and it is free.
Perhaps to step up to the level of Tradestation, Multicharts, NinjaTrader even Metatrader5.

Its not about Visual Studio IDE be overwhelming(I guess you assuming I have never used visual studio before), or because its free.

But I guess you prefer not to be able to have a complete self contained package that don't depend on a third party hand off that you cant get any support for.
Ability to optimize your source code for fastest speed.
Ability to optimize input variables.
Ability to back test and optimize input variables against several symbols in a single pass.
Ability to easily code windows/forms to control SC strategies and indicators.

So in your mind, none of these things are important or having all this available in one solid platform is an improvement on "their" product.
Just because the coding products you have developed and sold(spreadsheets,S3) may not need any of the aforementioned abilities.
Having these abilities would improve "their" product and gain more customers who want and need the mention abilities to try and develop more advanced trading capabilities.
[2019-12-29 17:08:25]
User701453 - Posts: 176
The learning curve is substantial for an amateur programmer, despite familiarity with C. But in my, possibly naive view,
Bob
HinckleyBob,Did you get visual studio to work for your debugging requirements?

I have a dll project that I coded completely in ACSIL.
Trying to debug or compile that dll project in VS17 and there is a ton of errors relating to scconstants.h,scstructures.h and sierrachart.h (which SC will provide no support for since its visual studio)

However the same .cpp compiles successfully with no errors using SC Remote Build.

It is well supported, very popular, and an excellent tool.
Visual Studio is not an SC product and as stated by SC, it is not supported by SC.
In fact Visual Studio for debugging is so unreliable that SC even took down the webpage they had to configure VS to work with SC.

there is little value in attempting to provide a different IDE.
Tradestation, Multicharts, NinjaTrader along with Metatrader5 don't have that naive view.
Date Time Of Last Edit: 2019-12-29 18:04:13
[2019-12-29 20:40:38]
HinckleyBob - Posts: 45
User701453 & bradh, thank you for the discussion:
Please enlighten me on alternatives I could use to compile, make, load, and debug ASCIL.

I spend more time fussing with the compiler and reading the scattered, albeit through documentation, than trying to finish my first project. All I want to do is change the start and end dates on several Volume at price charts - I have to do it daily manually, and I would like to spend the time adding my drawings to start the trading day, rather than using dialog boxes!

I had not noticed they took down the debugging page. I am able to access https://www.sierrachart.com/index.php?page=doc/StepByStepACSILDebugging.php, but maybe it is a cached copy, not sure. Better make a local copy of all the bookmarked pages I have. And I have not encountered the errors you mention, probably because I am too naive to know they are errors - ignorance is bliss :-).

Happy new year you guys,
Bob
[2019-12-29 21:45:54]
bradh - Posts: 854
@User70145:

Perhaps to step up to the level of Tradestation, Multicharts, NinjaTrader even Metatrader5.

It sounds like you have more experience with other platforms and their capabilities, and I respect that.

But I guess you prefer not to be able to have a complete self contained package that don't depend on a third party hand off that you cant get any support for.
Ability to optimize your source code for fastest speed.
Ability to optimize input variables.
Ability to back test and optimize input variables against several symbols in a single pass.
Ability to easily code windows/forms to control SC strategies and indicators.

All those things sound great. Perhaps Sierra will decide to move in those directions, but I don't see it happening soon. My guess is we may see incremental changes that move towards better developer features, like some of the backtesting functions that were recently added. The limited resources at Sierra appear to be focused on other aspects of the application that benefit a larger user base. Yes, it is DIY as far as support for Visual Studio goes, and for me, it was overwhelming at first. My learning ACSIL was a step up from spreadsheets, and learning how to debug with VS was a step up from writing debug text to the messages log.

Trying to debug or compile that dll project in VS17 and there is a ton of errors relating to scconstants.h,scstructures.h and sierrachart.h (which SC will provide no support for since its visual studio)
I haven't seen errors with those files, just warnings, which I suppress with /W0 as a command-line parameter.


@HinckleyBob: The step-by-step debugging page at Step-By-Step ACSIL Debugging replaces the old debug page(s). It simplifies the process so you can debug just the cpp files, instead of projects/solutions. I don't know of alternatives, let alone better ones. If you find them I would be interested to hear what you think.
[2019-12-29 21:56:51]
HinckleyBob - Posts: 45
I used to code for fun, but my focus now is on trading.

I learned and even taught C to those in a trade school for several years. But I am so stale C++ is challenging to spend the time to learn what I need, since I don't want to spend the time to do a class (yet).

I used tradestation for options and thought it was pretty good. But support for Volume at Profile was too expensive what there were other alternatives available. I love Sierra Charts.

I have not found an alternative to MSVC++, so I hold my nose and use what everyone seems to think is the best IDE.
Bob
[2019-12-29 23:59:48]
User701453 - Posts: 176
@HinckleyBob: The step-by-step debugging page at Step-By-Step ACSIL Debugging replaces the old debug page(s).
Following SC instructions from that page "Build with Visual C++ -Debug" returns a crap ton of errors. Yet that same cpp file compiles clean with no errors on the "Remote Build".

C:\SierraChart\SierraChartTransActMA\ACS_Source>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
cl : Command line warning D9002 : ignoring unknown option '/JMC'
cl : Command line warning D9002 : ignoring unknown option '/std:c++17'
cl : Command line warning D9002 : ignoring unknown option '/diagnostics:classic'
Compiler_Tester.cpp
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(109): error C2065: 'HWND': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(109): error C2146: syntax error: missing ')' before identifier 'WindowHandle'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(118): error C3646: 'DateTime': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(118): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(154): error C3861: 'memset': identifier not found
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(267): error C3646: 'GetDateTimeOfLastTradeRecord': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(267): error C2059: syntax error: '('
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(268): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(174): error C2065: 'NULL': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(190): error C2065: 'NULL': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(202): error C2065: 'NULL': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(227): error C2065: 'NULL': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(264): error C2065: 'SC_TS_ASK': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(264): error C2065: 'SC_TS_BID': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(316): error C3646: 'Color': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(316): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(322): error C2065: 'ACSIL_DRAWING_MAX_LEVELS': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(323): error C3646: 'BeginDateTime': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(323): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(324): error C3646: 'EndDateTime': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(324): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(325): error C3646: 'Text': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(325): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(327): error C3646: 'DrawingType': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(327): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(339): error C3646: 'FontFace': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(339): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(345): error C3646: 'SecondaryColor': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(345): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(350): error C3646: 'ThirdDateTime': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(350): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(357): error C3646: 'LevelColor': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(357): error C2143: syntax error: missing ',' before '['
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(357): error C2143: syntax error: missing ')' before ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(357): error C2238: unexpected token(s) preceding ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(358): error C2065: 'ACSIL_DRAWING_MAX_LEVELS': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(359): error C2065: 'ACSIL_DRAWING_MAX_LEVELS': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(422): error C3646: 'TextColor': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(422): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(449): error C2065: 'Text': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(449): error C2228: left of '.Initialize' must have class/struct/union
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(449): note: type is 'unknown-type'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(454): error C2065: 'TOOL_UNDEFINED': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(455): error C2065: 'UTAM_ADD_OR_ADJUST': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(456): error C2065: 'FLT_MIN': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(457): error C2065: 'FLT_MIN': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(458): error C2065: 'FLT_MIN': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(468): error C2065: 'Color': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(472): error C2065: 'FontFace': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(472): error C2228: left of '.Initialize' must have class/struct/union
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(472): note: type is 'unknown-type'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(477): error C2065: 'SecondaryColor': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(478): error C2065: 'TextColor': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(483): error C2065: 'ACSIL_DRAWING_MAX_LEVELS': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(485): error C2065: 'FLT_MAX': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(486): error C2065: 'LevelColor': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(523): error C2065: 'FLT_MAX': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(553): error C2065: 'NULL': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(556): error C2065: 'BeginDateTime': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(556): error C2228: left of '.Clear' must have class/struct/union
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(556): note: type is 'unknown-type'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(557): error C2065: 'EndDateTime': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(557): error C2228: left of '.Clear' must have class/struct/union
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(557): note: type is 'unknown-type'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(559): error C2065: 'DrawingType': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(559): error C2065: 'DRAWING_UNKNOWN': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(563): error C2065: 'ThirdDateTime': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(563): error C2228: left of '.Clear' must have class/struct/union
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(563): note: type is 'unknown-type'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(643): error C3646: 'LastFillDateTime': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(643): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(644): error C3646: 'LastEntryDateTime': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(644): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(645): error C3646: 'LastExitDateTime': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(645): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(586): error C3861: 'fabs': identifier not found
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(618): error C3861: 'fabs': identifier not found
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(623): error C3861: 'fabs': identifier not found
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(654): error C3861: 'memset': identifier not found
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(664): error C3646: 'OpenDateTime': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(664): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(665): error C3646: 'CloseDateTime': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(665): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(687): error C2065: 'OpenDateTime': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(688): error C2065: 'CloseDateTime': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(710): error C3646: 'Symbol': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(710): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(711): error C3646: 'TradeAccount': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(711): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(713): error C3646: 'FillDateTime': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(713): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(714): error C3646: 'BuySell': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(714): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(719): error C3646: 'FillExecutionServiceID': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(719): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(732): error C2065: 'Symbol': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(733): error C2065: 'TradeAccount': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(735): error C2065: 'FillDateTime': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(736): error C2065: 'BuySell': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(736): error C2065: 'BSE_UNDEFINED': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(739): error C2065: 'FillExecutionServiceID': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(759): error C3646: 'TextTag': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(759): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(760): error C3646: 'TimeInForce': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(760): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(882): error C3646: 'Symbol': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(882): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(883): error C3646: 'TradeAccount': unknown override specifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(883): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(890): error C2065: 'SCT_ORDERTYPE_MARKET': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(892): error C2065: 'DBL_MAX': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(893): error C2065: 'DBL_MAX': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(897): error C2065: 'SCT_TIF_DAY': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(945): error C2065: 'SCT_ORDERTYPE_LIMIT': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(946): error C2065: 'SCT_ORDERTYPE_LIMIT': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(947): error C2065: 'SCT_ORDERTYPE_LIMIT': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(948): error C2065: 'SCT_ORDERTYPE_LIMIT': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(949): error C2065: 'SCT_ORDERTYPE_LIMIT': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(951): error C2065: 'SCT_ORDERTYPE_STOP': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(952): error C2065: 'SCT_ORDERTYPE_STOP': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(953): error C2065: 'SCT_ORDERTYPE_STOP': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(954): error C2065: 'SCT_ORDERTYPE_STOP': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(955): error C2065: 'SCT_ORDERTYPE_STOP': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(956): error C2065: 'SCT_ORDERTYPE_STOP': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(963): error C2065: 'DBL_MAX': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(1008): error C2065: 'DBL_MAX': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(1009): error C2614: 's_SCNewOrder': illegal member initialization: 'TextTag' is not a base or member
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(1009): error C2614: 's_SCNewOrder': illegal member initialization: 'TimeInForce' is not a base or member
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(1009): error C2614: 's_SCNewOrder': illegal member initialization: 'Symbol' is not a base or member
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(1009): error C2614: 's_SCNewOrder': illegal member initialization: 'TradeAccount' is not a base or member
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\winapifamily.h(1009): fatal error C1003: error count exceeds 100; stopping compilation
-- End of Build -- 18:42:54

Trying to debug that same cpp file with VS17 following the SC instructions results in breakpoints that dont work as VS returns errors that "The BreakPoint will currently not be hit.No symbols have been loaded for this document."

Which of course SC customers can expect no help from SC as " Visual C++ is not a program we can support."
[2019-12-30 04:51:08]
HinckleyBob - Posts: 45
User701453, your experience aroused my curiosity. So I copied the same study from Studies2.cpp, and added
#include "SCStudyFunctions.h"
SCDLLName("DoubleStochastic")
under the #include "sierrachart.h."

Then I added the SC Data directory to the Symbol file (.pdb) location in the IDE Debug>Options>Debugging>Symbols dialog, and loaded the symbols.

I then compiled using the SC Analysis>build>Build with C++ Debug, attached the process in the IDE, and set a breakpoint at the return in set defaults code block. Then added the study to the chart (which required continuing the debug 2x).

There is more going on here that I don't begin to understand, but at least it did seem to compile and run with the debugger as described in the SC instructions. At least I was able to set a watch on the SmoothingLength object.

That is as far as I went but seems to work as I expected. A couple of screenshots are attached.

This is a learning experience for me after reinstalling the compiler. But I hope my experience can help figure out why all those errors are happening. Thank you again for the discussion.
Bob
attachmentDebug Options Dialog.pdf - Attached On 2019-12-30 04:48:22 UTC - Size: 90.39 KB - 319 views
attachmentIDE.pdf - Attached On 2019-12-30 04:48:33 UTC - Size: 333.81 KB - 478 views
[2019-12-30 09:45:45]
User701453 - Posts: 176
I`m glad its working for you Bob.
It does not work for my custom .cpp file.

Which once again goes to why a dedicated development IDE, created and supported by SC should be provided to its customers.
Not handed off to a third party tool which you wont get any support from by SC.

Have you tried compiling using the SC Analysis>build>Build with C++ -Debug on a custom developed .cpp file?
Not a cpp file created by SC.
Date Time Of Last Edit: 2019-12-30 10:07:41
[2019-12-30 13:02:57]
HinckleyBob - Posts: 45
Have you tried compiling using the SC Analysis>build>Build with C++ -Debug on a custom developed .cpp file?
Not a cpp file created by SC.

Too soon to tell. The project I am working on to change settings on the Volume at Price with ACSIL. But now that the IDE appears to be working, work can resume.

Happy New Year.
Bob
[2020-01-01 18:50:17]
User907968 - Posts: 802
@User701453

In relation to this -
Trying to debug that same cpp file with VS17 following the SC instructions results in breakpoints that dont work as VS returns errors that "The BreakPoint will currently not be hit.No symbols have been loaded for this document."

Sorry if I state the obvious, but you can't expect to be able to debug in VS if the debug build of your code failed (as indicated by the statement below) -
fatal error C1003: error count exceeds 100; stopping compilation

If your custom developed code will compile using the 'Remote Build' function, but not locally using the 'Build with C++ -Debug' function, then maybe there is a problem with one or more of the header files in the sierrachart\ASCSource folder. Did you already try downloading a clean version of sierrachart to check for this?
[2020-01-01 20:41:45]
User701453 - Posts: 176
Sorry if I state the obvious, but you can't expect to be able to debug in VS if the debug build of your code failed (as indicated by the statement below) -
Yes, I accept your apology for stating the obvious , which we already know.

If your custom developed code will compile using the 'Remote Build' function, but not locally using the 'Build with C++ -Debug' function, then maybe there is a problem with one or more of the header files in the sierrachart\ASCSource folder. Did you already try downloading a clean version of sierrachart to check for this?

Yes,that crossed my mind, which I then copied up my complete Sierra folder to my back up server and then upgraded to build 2028. Still the same result.
[2020-01-01 21:27:03]
User907968 - Posts: 802
Yes, I accept your apology for stating the obvious , which we already know.
Fair enough, but if it is already so obvious to you, why make the statement below implying that you expected VS debug to somehow work if you followed the SC instructions, even though the debug build had failed.
Trying to debug that same cpp file with VS17 following the SC instructions results in breakpoints that dont work as VS returns errors that "The BreakPoint will currently not be hit.No symbols have been loaded for this document."

Yes,that crossed my mind, which I then copied up my complete Sierra folder to my back up server and then upgraded to build 2028. Still the same result.
Simply upgrading to a newer version is not necessarily helpful, as unless the header files have been revised since the earlier version they may not be re-downloaded.
Did you actually try a clean install i.e. a new complete download to a new location?
[2020-01-02 04:06:46]
User701453 - Posts: 176
Fair enough, but if it is already so obvious to you, why make the statement below implying that you expected VS debug to somehow work if you followed the SC instructions, even though the debug build had failed.
Perhaps you shouldn't offer an apology, then get upset when it is accepted.
Sounds like SJW types of apologies.
Also, I know the cpp file is not going to debug if the"Build with Visual C++ -Debug" doesn't complete correctly.
I'm also trying to debug using the same cpp file within the VS Solution that it was developed in.
This isn't just a simple dll indicator, its an complex autotrading strategy.
I need either of the debugging methods to work correctly, prefer both of them to work correctly

Simply upgrading to a newer version is not necessarily helpful, as unless the header files have been revised since the earlier version they may not be re-downloaded.
Did you actually try a clean install i.e. a new complete download to a new location?
So in other words SC customers have to go back and fix half ass upgrades.
After following the upgrade procedure documentation.

Since I use broker provided AT trading platform and SC is installed in the required brokers folder.
The last thing I need to do is screw up being able to place trades and use my other working dlls, charts and work spaces.
Date Time Of Last Edit: 2020-01-02 04:21:45
[2020-01-02 14:24:17]
User907968 - Posts: 802
I'm also trying to debug using the same cpp file within the VS Solution that it was developed in.
So you got your code to compile ok in VS then?
[2020-01-02 17:14:41]
bradh - Posts: 854
VS returns errors that "The BreakPoint will currently not be hit.No symbols have been loaded for this document."

In my experience, this means the DLL that is attached to the study is not the same as the one being debugged in VS. You may need to remove the study and add it back to avoid getting that error. Also remember to do a recalc, as well as stopping and backtest/replay and then Play.

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

Login

Login Page - Create Account