Jump to content


Photo
- - - - -

Dev C++ 4.9.9.2 Sleep error


  • Please log in to reply
1 reply to this topic

#1 Ingelo

Ingelo

    the 0ne

  • Members
  • 1 posts

Posted 06 March 2006 - 09:20 AM

[COLOR=green]Hey.. I have a program i need to compile in C, I use Dev-C++ 4.9.9.2 but when i compile and it linking it says 2 errors:
1) [Linker error] undefined reference to `sleep'
2) more undefined references to `sleep' follow.

Can anyone help me ? thanks.

Edited by Ingelo, 06 March 2006 - 09:21 AM.


#2 tiocsti

tiocsti

    rekcah-rebÜ

  • Banned
  • 676 posts

Posted 06 March 2006 - 09:30 AM

#ifdef WINDOWS_SUCKS
#include <windows.h>
#define sleep(a) Sleep(a * 1000)
#endif


[COLOR=green]Hey.. I have a program i need to compile in C, I use Dev-C++ 4.9.9.2 but when i compile and it linking it says 2 errors:
  1) [Linker error] undefined reference to `sleep'
2) more undefined references to `sleep' follow.

Can anyone help me ? thanks.

View Post






BinRev is hosted by the great people at Lunarpages!