No such directory or file in C++ [Codeblocks/Visual Studio]

218 views Asked by At

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!

1

There are 1 answers

0
dumbak On BEST ANSWER

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.