coolaj86 / libev-examples

A nice place for simple libev examples. Please contribute.
MIT License
236 stars 84 forks source link

does not 'make' under U14.04 #7

Open bbulkow opened 9 years ago

bbulkow commented 9 years ago

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 toev_run' /tmp/ccDrpTcP.o: In function client_cb': /home/brian/dev/libev-examples/src/unix-echo-server.c:53: undefined reference toev_io_stop' /tmp/ccDrpTcP.o: In function server_cb': /home/brian/dev/libev-examples/src/unix-echo-server.c:110: undefined reference toev_io_start' /tmp/ccDrpTcP.o: In function main': /home/brian/dev/libev-examples/src/unix-echo-server.c:173: undefined reference toev_default_loop' /home/brian/dev/libev-examples/src/unix-echo-server.c:180: undefined reference to ev_periodic_start' /home/brian/dev/libev-examples/src/unix-echo-server.c:184: undefined reference toev_io_start' collect2: error: ld returned 1 exit status make: *\ [bin/unix-echo-server] Error 1 brian@ubuntu1404-vm:~/dev/libev-examples$

coolaj86 commented 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.

coolaj86 commented 9 years ago

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?