I have the code below which can be compiled (using arm7-comp.bat) without error:
Code: Select all
#include <time.h>
int main(){
time_t t; //time_t is "unsigned long"
time(&t);
return 0;
}
However, at link time, it gave me the following error:
Code: Select all
C:\PROGRA~1\MATRIX~1\Flowcode_ARM\Tools\MX_bats\..\arm-elf\lib\libc.a(time.o): In function `time':
time.c:(.text+0x1c): undefined reference to `_gettimeofday_r'
Thanks in advance,
Phaderm