Hi:<br><br>&nbsp; clock_gettime needs to use librt library. Include with -lrt.<br>When you have compiled it successfully using -levent, check with ldd to see which library it links to.<br><br>Regards<br>Hor Meng<br><br><div><span class="gmail_quote">
On 10/17/07, <b class="gmail_sendername">Sun Yi-Ming</b> &lt;<a href="mailto:dolmens@gmail.com">dolmens@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi guys, when I compile my simple test file which just has an<br>event_init() against the static library libevent.a, I got an error<br>message which said that &quot;event.c:166 clock_gettime undefined<br>reference&quot;(something like that, I uses a non-english locale debain.).
<br>But if I compile against the shared library -levent, all is ok. what<br>happened?<br><br>gcc (GCC) 4.1.2<br>Debian 4.1.1-21<br>--<br>Sincerely,<br><br>ËïÒ»Ãù Simon Sun<br>--<br>Be a man with simple interface.<br><br>_______________________________________________
<br>Libevent-users mailing list<br><a href="mailto:Libevent-users@monkey.org">Libevent-users@monkey.org</a><br><a href="http://monkey.org/mailman/listinfo/libevent-users">http://monkey.org/mailman/listinfo/libevent-users</a>
<br><br></blockquote></div><br>