Reputation: 4056
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:
./configure --prefix=/usr/local --mandir=/usr/local/man
--infodir=/usr/local/info --without-boost
SUBDIRS = src include examples doc
to SUBDIRS = src include doc
(removed "examples")make
sudo make install
Everything ran without problems. So I wanted to include the library:
/usr/local
libcurlpp.0.dylib
in /usr/local/lib
'curlpp/cURLpp.hpp' file not found
Any help is greatly appreciated! I'm still on the switch from ruby/javascript/python to c++! :)
Upvotes: 1
Views: 948
Reputation: 2540
It looks like you are linking ok, but if Xcode can't find the header it means you don't have the header search path set up properly. Go to Build Settings --> Header Search Path and add the path to your header. Since you are including 'curlpp/cURLpp.hpp' you path has to be the folder containing the folder 'curlpp'.
Upvotes: 2