trying to compile with clock_settime(...)

J

jchludzinski

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.
 
F

Flash Gordon

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.

This is not the right group since we only deal with C not with system
specific extension be they POSIX, Windows or CPM. Might I suggest
comp.unix.programmer after reading their FAQ or possibly one of the GNU
mailing lists?
 
K

Keith Thompson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top