#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(void)
{
int i = 1;
for(i=1;i<2000;i++)
{
printf(" Hello World ! i =%d\n",i);
sleep(1);
}
return 0;
}
test.c:(.text.startup+0x32): undefined reference to `sleep'
collect2: error: ld returned 1 exit status
Makefile:9: recipe for target 'test.riscv' failed