Where is the file located libevent.(a|so)on your system?
If this is not the path to your system library, you need to add a parameter -Lby adding its location to the list of paths that the linker for libraries was looking for.
eg.
gcc -L/folder/containing/event/lib -levent mysource.cc