RE: clock_gettime() problem

From: Charlie Liu (
Date: Tue Apr 08 2003 - 18:40:37 EST

Thanks a lot for your info and corrections. The answer from Mark was:

These functions seem to be implemented in a separate library called
"librt" for some reason. Adding the "-lrt" flag to gcc's command
line made your program build for me. -- from Mark (Thanks again)


-----Original Message-----
From: Randy.Dunlap []
Sent: Tuesday, April 08, 2003 4:23 PM
To: Charlie Liu
Subject: Re: clock_gettime() problem

On Tue, 8 Apr 2003 16:20:23 -0700 "Charlie Liu" <>

| Any better mailing list you can point out for me so that I can post
| question(s) in future?
| Thanks for Mark's reply which fixed my problem.

Oh, and what was that answer... I missed it.

| Linux 2.4.* does not implement the clock_gettime() syscall.
| Patches for 2.4 POSIX clocks and timers are available at

There's a mailing list at that URL above, or use


- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to More majordomo info at

This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:01 EST