How to include ForexConnect API on Linux/MacOS
Brief
The article discusses how to use ForexConnect API in C++ on Linux or MacOS.
Details
To use ForexConnect API in your C++ application, you should:
Place supporting shared libraries in the same directory where your application program is located.
Alternatively, you can place supporting shared libraries in the /usr/lib directory.
Add libForexConnect to the list of libraries in the linker options.
For example, if you use gcc, the option will be -lForexConnect. The path to the directory containing the libraries (e.g. /ForexConnectAPI/lib)
can be specified by the -L/ForexConnectAPI/lib option.
Include the header file in your code using the directive #include "ForexConnect.h".
The path to the directory containing the headers (e.g. /ForexConnectAPI/include) can be specified by the -I/ForexConnectAPI/include option.