Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top