I wrote a program on my pc, where I am trying to print a line every 3 seconds.
int main ()
printf ("Print this line every three seconds!!\n");
I am getting a compile/link error saying that it cannot find --bad_udelay (which is reference in delay.h for my PC,
psullivan@linux:~> gcc homework1.c
/tmp/ccoWpKbA.o(.text+0xe1): In function `main':
homework1.c: undefined reference to `__bad_udelay'
collect2: ld returned 1 exit status
What do I have to do to link in to get __bad_udelay? Do I have to create a make file to include the kernel or parts of the Linux kernel to do this? I currently do not have a make file and am unsure how it should look like.