Thread: Sleep ????

  1. #1
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005

    Sleep ????

    Hi have two compilers, Dev C++ and Microsoft Visual Beta 2005.

    on Dev C++, the command Sleep() works fine with out error, but on my other compiler, it gives me a message "Unknown Identifier 'Sleep' Why is this? Is Sleep() compiler persific??

  2. #2
    Registered User mitakeet's Avatar
    Join Date
    Jun 2005
    Maryland, USA
    Sleep() is compiler specific.

    Free code:

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw

  3. #3
    Tropical Coder Darryl's Avatar
    Join Date
    Mar 2005
    Cayman Islands
    Sleep() is not compiler specific but OS specific, it's defined in the windows headers, which by default are not included in the beta, you need to install the windows platform SDK

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [pthread] cancellable sleep in win32?
    By cyberfish in forum C++ Programming
    Replies: 2
    Last Post: 08-11-2007, 02:30 AM
  2. Sleep works with just one thread, but not 2
    By finkus in forum C++ Programming
    Replies: 5
    Last Post: 12-01-2005, 09:17 PM
  3. Problem with Sleep() #$@^#$%^
    By intruder in forum C++ Programming
    Replies: 8
    Last Post: 10-11-2004, 06:46 AM
  4. why do we require sleep?
    By jinx in forum A Brief History of
    Replies: 43
    Last Post: 07-14-2004, 08:21 AM
  5. Sleep is overrated...
    By Polymorphic OOP in forum A Brief History of
    Replies: 24
    Last Post: 01-24-2003, 12:40 PM