Re: Undefined symbol timer_delete()?

From: David Xu <davidxu_at_freebsd.org>
Date: Mon, 18 Jun 2007 09:16:34 +0800
Steve Kargl wrote:
> [snip]

> You failed to include the actual command you used to compile
> your program.  So, I'm guessing pilot error.
> 
> mobile:kargl[203] cat > j.c
> #include <time.h>
> int main(void) {
>   timer_t timerid;
>   timer_delete(timerid);
>   return 0;
> }
> mobile:kargl[204] cc -o z j.c
> /tmp/ccisiugw.o(.text+0x18): In function `main':
> : undefined reference to `timer_delete'
> mobile:kargl[205] cc -o z j.c -lrt
> 
> It appears that the manpage is wrong
> 
> LIBRARY
>      Standard C Library (libc, -lc)
> 
> Hint:
> (cd /usr/src/lib ; find . -name \*.map | xargs grep timer)
> 

I will fix the manpages, thanks.

David Xu
Received on Sun Jun 17 2007 - 23:16:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:12 UTC