Open bbulkow opened 9 years ago
I created this years ago and it looks like libev has updated in an incompatible way.
I agree with your concern and would be happy to make you a contributor to solve the issue, but I don't have the time to look into it myself right now.
I believe libuv is the more popular successor to libev.
To me it looks like those references are still defined:
http://cvs.schmorp.de/libev/ev.h?revision=1.183&view=markup
What version of libev does 14.04 ship with?
Just cloned on ubuntu 14.04 with the default libev.
This is the #1 google result for "libev examples" - it would be nice if it worked with the most common developer distribution.
brian@ubuntu1404-vm:~/dev/libev-examples$ make cc -Wall -Werror -lev -ggdb3 -I./include -o obj/array-heap.o -c src/array-heap.c cc -Wall -Werror -lev -ggdb3 -I./include -o bin/unix-echo-server src/unix-echo-server.c obj/array-heap.o /tmp/ccDrpTcP.o: In function
ev_loop': /usr/include/ev.h:826: undefined reference to
ev_run' /tmp/ccDrpTcP.o: In functionclient_cb': /home/brian/dev/libev-examples/src/unix-echo-server.c:53: undefined reference to
ev_io_stop' /tmp/ccDrpTcP.o: In functionserver_cb': /home/brian/dev/libev-examples/src/unix-echo-server.c:110: undefined reference to
ev_io_start' /tmp/ccDrpTcP.o: In functionmain': /home/brian/dev/libev-examples/src/unix-echo-server.c:173: undefined reference to
ev_default_loop' /home/brian/dev/libev-examples/src/unix-echo-server.c:180: undefined reference toev_periodic_start' /home/brian/dev/libev-examples/src/unix-echo-server.c:184: undefined reference to
ev_io_start' collect2: error: ld returned 1 exit status make: *\ [bin/unix-echo-server] Error 1 brian@ubuntu1404-vm:~/dev/libev-examples$