Link error: undefined reference to 'sleep'.

Hi Guys,

Why am I getting a link error when I use the sleep() function? Isn’t this already referenced by default?
When I “Ctrl+Click” the sleep function, I am redirected to “unistd.h”, which I believe is already referenced to my application.
Also, even when I include unistd.h, I am still getting this error.
Am I missing something?


Developer Studio 2.1.0
Open AT OS Package

sleep() function is not part of the C library provided by the GCC compiler for Open AT (newlib).
Open AT programing is event-oriented: you need to use timers when you want to wait for some time…

Okay, I get it.