Undefined symbol timer_delete()?
David Xu
davidxu at freebsd.org
Mon Jun 18 01:16:05 UTC 2007
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
More information about the freebsd-current
mailing list