i am trying to call getmicrotime(&tv) in a program but i
get the following error when compiling :
/tmp/ccfMfSM6.o(.text+0xe): undefined reference to `getmicrotime'
yes, i have declared '#include <sys/time.h>' :-)
FreeBSD 5.0-RELEASE-p4 i386
FreeBSD 4.7-RELEASE-p9 i386
any comment welcome.
thanks
julien mabillard.
_______________________________________________
freebs...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs...@freebsd.org"
That is a kernel function you are trying to call.
Use gettimeofday(2)
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.