can't compile example

Jonathan Neuschäfer j.neuschaefer at gmx.net
Tue Jul 12 12:22:46 CEST 2011


On Tue, Jul 12, 2011 at 03:40:26PM +0700, ahmad faya wrote:
> On Tue, Jul 12, 2011 at 3:29 PM, Zsbán Ambrus <ambrus at math.bme.hu> wrote:
> > On Tue, Jul 12, 2011 at 9:35 AM, ahmad faya <ahmad.faya at gmail.com> wrote:
> >> I have tried to compile the libev example
> >> http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#EXAMPLE_PROGRAM
> >>
> >> 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.
> 
> Thanks Ambrus,
> 
> Which version that is recommended to use in production?
> I'm asking this because debian 6 still shipped libev3, and debian
> developer known as only provide stable & proven package.
> 
> Thanks

For I'd recommend using the libev3 API for the time being, you still
have to change it some day, but libev4 supports the libev3 API if
you don't define EV_COMPAT3 to 0. See also
http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#PORTING_FROM_LIBEV_3_X_TO_4_X

Greetings,
	Jonathan Neuschäfer



More information about the libev mailing list