can't compile example

ahmad faya ahmad.faya at
Tue Jul 12 09:35:44 CEST 2011

I have tried to compile the libev example
But it is failed.

$ gcc -o libev_ex libev_ex.c -lev
libev_ex.c: In function ‘stdin_cb’:
libev_ex.c:21: error: ‘EVBREAK_ALL’ undeclared (first use in this function)
libev_ex.c:21: error: (Each undeclared identifier is reported only once
libev_ex.c:21: error: for each function it appears in.)
libev_ex.c: In function ‘timeout_cb’:
libev_ex.c:29: error: ‘EVBREAK_ONE’ undeclared (first use in this function)

I use ubuntu 10.04 and have installed libev3 and libev-dev packages.
I can compile and run udp_echo mentioned in
So, i can assume that i have installed needed package.

Any hints?


More information about the libev mailing list