Sign in to follow this  
Followers 0
Ingelo

Dev C++ 4.9.9.2 Sleep error

2 posts in this topic

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
0

Share this post


Link to post
Share on other sites

#ifdef WINDOWS_SUCKS

#include <windows.h>

#define sleep(a) Sleep(a * 1000)

#endif

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.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0