Libcurl makes me want to pull my hair out!
I’ve followed many threads here about linking libcurl to my VS2017 project through the projucer, and I’ve gotten pretty far, but now I’m coming across an issue that I haven’t seen discussed here.
My VS2017 solution contains 2 projects: EQIP_SharedCode and EQIP_VST (Generated by the projucer). I can see the curl.h file under the “External Dependencies” folder in EQIP_SharedCode, so I assume that’s why my #include <curl/curl.h> statement works in compilation. However, i get errors in the linking phase:
LNK2001 unresolved external symbol curl_easy_init - Project: EQIP_VST
The EQIP_VST project doesn’t include curl.h in “External Dependencies”, so I assume that’s why it can’t link. Shouldn’t the projucer make sure the headers are included in all projects of the VS2017 solution? What’s my next move?
Just FYI - I’ve already defined the correct Header Search Path and Extra Library Search Paths for the configuration in the projucer, as well as CURL_STATICLIB in the preprocessor definitions. (Thanks to the forum discussions here, I was able to figure this out! I feel like there needs to be a stickied libcurl HOWTO or something…)