I am sure I must all ready have so I expect I am doing something stupid in the makefile.
Is nanosleep an definition or an inline function? If so, then it is required to include the correct header file and make sure it is not undeclared because of sime #ifdef's
Greets, Ole