There is a compiled library curl. Need to connect it to visual studio so that you can use it directly from the project, without any extra add-ons?

  • one
    Can be a little more detail, which means "without unnecessary add-ins"? - Vladimir Gamalyan
  • that is, I just want to go to the studio, create a project, connect the necessary libraries and that's it - dar
  • one
    if curl built in the same version of the studio, with the same settings, then there should be no problems - Vladimir Gamalyan
  • I don't know how to connect the compiled library to the project itself - dar
  • The most brutal way - drag the mouse into the tree of the project - Vladimir Gamalyan

1 answer 1

Connect the header file

#include <curl/curl.h>

Connect the library file

#pragma comment ( lib, "ΠΏΡƒΡ‚ΡŒ/ΠΊ/скомпилированной/Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠ΅/libcurl.lib" )

In the preprocessor definitions in the properties of the project add

CURL_STATICLIB

You are using.

PS: For debugging, if necessary, the debug version of liby is connected and used - libcurld.lib