At Fri, 7 Jun 2002 09:23:16 +0800, henry wrote:
> I "make test" for test.c as follows :
> #include<linux/delay.h>
> int main()
> {
> udelay(1000);
> return 0;
> }
> But I got "undefined reference to __const_udelay",
> Could you show me what library to link ?

as i believe has been pointed out to you before, you shouldn't be
using anything in #include<linux/...> unless you're writing kernel
code (or libc itself).

you probably want usleep(3) or nanosleep(2).

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to