I have a program written with Windows-only code that I'm converting to multi platform. I've taken the windows only function,
and am replacing it with
I'm getting an error "undefined reference to "sleep(unsigned int)".
The article that describes my sleep function states that it needs "unistd.h" within the program for it to work. I have that included within the source code, so I am confused as to why it is not defined. Would you help me?
Removed it, getting the error that sleep is now undeclared. What's the problem? I've heard that DevC++ contains the required libraries and headers for unistd.h to be included properly. I haven't edited the compiler at all.