You should have libevent.a
. Then you can just gcc -o myprogram mysource.c libevent.a
.
Or try gcc -o myprogram -static mysource.c -levent
.
(And you probably shouldn't specify mysource.h
to gcc as it's most likely included into mysource.c with #include "mysource.h"
.)