- Joined
- 8/28/17
- Messages
- 123
- Points
- 138
I am trying to use cURL to make an API call so I can start getting real time stock data, but I am running into difficulties getting it to function in VS 2017. I have attempted an install using vcpckg using the following steps:
1. Clone vpckg using gitbash into C:\Program Files (see Step1.png)
2. In a CMD prompt navigate to C:\Program Files\vcpkg
3. Run in the command prompt: .\bootstrap-vcpkg.bat
4. Run in the command prompt: vcpkg integrate install
5. Run in the command prompt: vcpkg install sdl2 curl
According to vcpkg documentation I should be able to now simply "#include <curl.h>", but it can't find the folder. If I try including the "include" directory from curl and "#include <curl/curl.h> I can build my project. But if I try and set the "curl_global_init(
CURL_GLOBAL_DEFAULT)" as in this example I get linker errors (see LinkerError.png).
Any suggestions on how to get this up and running? I think if I can get API access, I will be much closer to being able to build a real trading system.
1. Clone vpckg using gitbash into C:\Program Files (see Step1.png)
2. In a CMD prompt navigate to C:\Program Files\vcpkg
3. Run in the command prompt: .\bootstrap-vcpkg.bat
4. Run in the command prompt: vcpkg integrate install
5. Run in the command prompt: vcpkg install sdl2 curl
According to vcpkg documentation I should be able to now simply "#include <curl.h>", but it can't find the folder. If I try including the "include" directory from curl and "#include <curl/curl.h> I can build my project. But if I try and set the "curl_global_init(
CURL_GLOBAL_DEFAULT)" as in this example I get linker errors (see LinkerError.png).
Any suggestions on how to get this up and running? I think if I can get API access, I will be much closer to being able to build a real trading system.