Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 17:49:37 +0000



Post From: Python, DTC protocol and ZeroMQ

[2024-02-24 01:39:15]
Zorin - Posts: 19
how ... build the study to include the ZeroMQ header files? Analyze | Build won't let me add folders, just files


0. (VERY IMPORTANT). Make sure that you can compile a standalone CPP file which uses your desired library - making a simple EXE, for example - to verify & confirm that this library has been set up properly [and does what you actually want to :)) ]


A. Run Sierrachart Analyze/Build - from the menu. You'll get some errors.


B. Go to Siarrachart ACS_Source folder, find the VisualCCompile.Bat file there

It's the BAT file which builds your DLL
You need your include path in there, BUT: it's generated by SierraChart, and will be overwritten every time you compile your code)

C. COPY this file (VisualCCompile.Bat) under another name ("_n.bat", for example)


D. Add a SETCLOCAL at the beginning of that file [1st line]. It saves environment variables - google for the details


E. Modify the last line:

BEFORE the edit:
cl /Zc:wchar_t /GS /GL /W3 /O2 /Zc:inline -Id:\_zCsniff_c\asio_orig\include /D "NDEBUG" ... ...

AFTER the edit:
cl /Zc:wchar_t /GS /GL /W3 /O2 /Zc:inline -Id:\zLiBc\asio\include /D "NDEBUG" ... ...

Details:
https://stackoverflow.com/questions/31395929/visual-studio-compiler-how-to-specify-the-include-path-to-build-cpp


F. Run this new BAT file; compiler should see the HPP file now

G. Thank Sierra Engineering for their wonder-full, brilliant outstanding documentation how to use C++ compiler with Sierra.
Date Time Of Last Edit: 2024-02-24 01:40:13