Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2007 09:16:34 +0800
From:      David Xu <davidxu@freebsd.org>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        deischen@freebsd.org, Craig Rodrigues <rodrigc@crodrigues.org>, freebsd-current@freebsd.org
Subject:   Re: Undefined symbol timer_delete()?
Message-ID:  <4675DCF2.7050006@freebsd.org>
In-Reply-To: <20070616205434.GA26966@troutmask.apl.washington.edu>
References:  <20070616203624.GA37899@crodrigues.org> <20070616205434.GA26966@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4675DCF2.7050006>