can't compile example

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


Hi,
I have tried to compile the libev example
http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#EXAMPLE_PROGRAM
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
http://lists.schmorp.de/pipermail/libev/2010q1/001010.html.
So, i can assume that i have installed needed package.

Any hints?

Thanks



More information about the libev mailing list