Re: trying to compile with clock_settime(...)



"jchludzinski@xxxxxxxxx" <jchludzinski@xxxxxxxxx> writes:
> Trying to compile using clock_settime(...) [in time.h] but get:
> "undefined reference to `clock_settime'". Looking at time.h I see the
> declaration is sandwiched between:
>
> #ifdef __USE_POSIX199309
> ...
> #endif
>
> so I tried: gcc -D__USE_POSIX199309
> to no avail.
>
> Any suggestions?
>
> ---John
>
> PS> I don't know if this is the proper group for this posting but I had
> to start somewhere.

Try comp.unix.programmer.

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.



Relevant Pages