can't compile example

Zsbán Ambrus ambrus at
Tue Jul 12 10:29:25 CEST 2011

On Tue, Jul 12, 2011 at 9:35 AM, ahmad faya <ahmad.faya at> wrote:
> I have tried to compile the libev example
> libev_ex.c: In function ‘stdin_cb’:
> libev_ex.c:21: error: ‘EVBREAK_ALL’ undeclared (first use in this function)
> I use ubuntu 10.04 and have installed libev3 and libev-dev packages.

You are using a too old version of libev.  The EVBREAK_ALL macro is
introduced in libev version 4.0.

Try doing one of the following:

* Install a newer version of libev, preferably the latest stable version (4.04).

* Use the example program from an older version of the manual, such as


More information about the libev mailing list