I am trying to use curlpp in my Xcode c++ project, but even though I added the library to the target in the project settings, I'm told "file not found" for the line
#include <curlpp/cURLpp.hpp>
I probably did something wrong, but I'm not sure what. I followed some instuctions together with another stackoverflow question (not long). Here are my exact steps:
- I downloaded the source from Google Code
- I unzipped it etc., then I ran
./configure --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info --without-boost
- I changed a line in the Makefile:
SUBDIRS = src include examples doc
toSUBDIRS = src include doc
(removed "examples") - I ran
make
- I ran
sudo make install
Everything ran without problems. So I wanted to include the library:
- Targets -> Build Phases -> Link Binary with Libraries -> "+" -> Add Other
- If I understood correctly, the lib must be in
/usr/local
- I found
libcurlpp.0.dylib
in/usr/local/lib
- It's a hidden folder, so I copied it to the project directory and added it to the project
- I hit compile.
- Xcode told me
'curlpp/cURLpp.hpp' file not found
Any help is greatly appreciated! I'm still on the switch from ruby/javascript/python to c++! :)