This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

_gettimeofday is not implemented


I have a syscalls.c file with a _gettimeofday() function, and I expected this to be used instead of the one in libnosys, but it does not. I get a warning from the linker:

warning: _gettimeofday is not implemented and will always fail

If I remove "-llibnosys" I get an undefined symbol error:

undefined reference to `gettimeofday'

My syscalls.c file has read() and write(), and I get those instead of the libnosys versions. Why not _gettimeofday()?

Thanks,
John

-- 
John Wilkes | AMD Research |  john.wilkes@amd.com | office: +1 425.586.6412 (x26412)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]