The two flags are:
-L
to add a search path for libraries. If the include path is/usr/local/include
, chances are the library path should be-L/usr/local/lib
.-l
to link a library. If the library is calledlibevent.{a,so}
, then use-levent
.
You can also simply add the fullpath to a specific library (static or dynamic) to your compile flags.