Header files just have to be in your search path. If they're in /usr/local/include
then make sure that's in the list of places to check. Your project should have things like /usr/include
by default.
How to add libevent to my OSX XCode project?
-
01-06-2022 - |
Question
I'm trying to add libevent to my OSX XCode Project. One of my C++ files has the following.
#include <evhttp.h>
In my /usr/local/lib I have lots of libevent files such as libevent.a and libevent.dylib and so on.
I think, I am supposed to add the libevent.a file to the linked frameworks and libraries, but what about the header files?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow