5

I'm trying to make a transition from vb.net to C++ and I'm stuck on this. I downloaded curlpp from here which got me a .dll, .exp and .lib file. I added the directory that contains those 3 files to "Additional Library Directories" in the project properties (Linker -> General).

Next, I added ws2_32.lib and Wldap32.lib to "Additional Dependencies", also in the project properties (Linker -> Input) because this question stated I should.

Now I'm trying to get Example 00 to work, but

#include <curlpp/curlpp.hpp>
#include <curlpp/Easy.hpp>
#include <curlpp/Options.hpp>

States "cannot open source file curlpp/curlpp.hpp" etc. which makes sense because I have never even seen those files. What am I doing wrong? This is quite different from vb.net and I can't seem to figure it out.

UPDATE:

I did what Mat said, but it didn't work, so I added all relevent folders to be sure. includes

But VS still states the files can't be found.

Community
  • 1
  • 1
natli
  • 3,639
  • 10
  • 44
  • 80

1 Answers1

3

You should download the full source package (.tar.gz in the downloads section) to get the headers, code, samples and documentation.

You'll need to add the base directory where the include files reside on your machine (after unpacking the archive) to the list of include directories for your project.

Mat
  • 188,820
  • 38
  • 367
  • 383
  • Thanks for the answer Mat, unfortunately VS still states the files can't be found. I updated my question to clarify what I tried. – natli Oct 30 '11 at 14:27
  • Are you sure it's the same message **exactly**? (The only path you need is `.../curlpp-0.7.3/include`.) – Mat Oct 30 '11 at 14:34
  • In addition to the message I was already getting, another error seems to have popped up: "Cannot open include file: 'curlpp/cURLpp.hpp': No such file or directory" – natli Oct 30 '11 at 14:38
  • 1
    Figured it out. I was adding the directory to (Linker -> General) which is for libraries, when I should have been adding it to (C/C++ -> General) which is for includes.. d'oh! Thanks for the help. – natli Oct 30 '11 at 14:53