Re: [Dev-C++] sleep() in unistd.h ??
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: <or...@vp...> - 2002-12-12 20:13:17
|
Hello! we...@ha... wrote: > In what header is sleep() ?? I use gcc 3.2 separately installed, and took a search for "sleep" in the includes. The result is this: /* * NOTE: Officially the three following functions are obsolete. The Win32 API * functions SetErrorMode, Beep and Sleep are their replacements. */ void _beep (unsigned int, unsigned int); void _seterrormode (int); void _sleep (unsigned long); So you should call _sleep() (not recommended, it is likely to be removed) or Sleep() instead of sleep(). For Sleep() you should include windows.h or at least winbase.h I hope that helps. -- Regards Balázs (Yes, in Hungary, we write our first name at the end) |