Implementing _gettimeofday on Zynq
Asked by
JS
I'm compiling for the Zynq chip using CodeSourcery Lite, and when I include <time.h> and reference the time() function, the linker complains that it can't find _gettimeofday:
~/CodeSourcery/
gettimeofdayr.
collect2: ld returned 1 exit status
How do I give it a _gettimeofday function to use for getting the system timer ticks? This seems to be a deficiency with CodeSourcery Lite, as I don't have a problem when compiling using Xilinx tools.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask JS for more information if necessary.
To post a message you must log in.