I'm currently working on a project that will download a file from a website using the cURL library, but I'm currently getting an error when the compiler reaches the #include "curlpp/cURLpp.hpp" line. The IDE I'm using is Codeblocks with MinGW gcc compiler but I've also tried Visual Studio and I'm running into the same problem. The curl folder is located in the same folder as the source code.

Thanks in advance!

有帮助吗?

解决方案

I had similar "path" issue. Try to change from:

#include "curlpp/cURLpp.hpp"

to:

#include "./curlpp/cURLpp.hpp"

In Visual Studio is also sometimes issue if your include directory is specified in VC++ Directories, put it rather into C++ -> General -> Additional Include Directories.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top