I decided to write a parser of pages on the pros and there was a problem with connecting the library. I downloaded all the necessary files * .h threw the compiler in the folder. lib files in lib pack. Dll'ly in the system32 folder. Sketched the code, and the compiler to many lines of code gives the following errors: "error C3861: 'curl_ease_init': identifier not found", etc.

What could I miss when adding a library? Thanks in advance!

  • one
    > I decided to write a parser of pages on the pros Already fun. - user6550

1 answer 1

error C3861 name is error C3861 , this means that the Microsoft compiler is used.

I downloaded all the necessary files * .h threw the compiler in the folder.

no need to do that.

lib files in lib pack.

Especially.

Dll'ly in the system32 folder.

Sometimes this is needed, but for the most part you can just leave it next to the binary and not clutter up the Windows folder. There, and so the garbage.

How to do it.

  • unpack the archive with the library. You can in some place, you can close, in the directory with the project. Download here , at the very bottom, in the "Win32 - MSVC" section.
  • In the directory we find the file libcurl.lib . Remember the way. The lib files are in two folders - release debug is for two different configurations. For the beginning you will probably only collect Debug. Therefore, the correct directory is libcurl.lib
  • Using the menu Solution->properties->Link(ing) add libcurl.lib to the project.
  • .h easiest to copy the .h files to your project — in the source folder, create the curl directory and copy the contents of the include/curl folder there. In the future, learn to understand what files are needed, what is not.
  • trying to compile. It should work, but it will not run. To do this, copy the dll file from the lib/Debug directory next to the binary.