View Full Version : Problem with compiler
knight543
01-11-2002, 10:58 PM
I can't seem to work the function delay(); with devc++ it's just i do delay(500); but it says i need to define int delay() and it still doesn't work can you write out a program that might work?
Crossbow
01-11-2002, 11:11 PM
I use Dev-C++ and I have never heard of the function delay. I searched the include files and I didn't find it either, so Dev-C++ must not come with the delay function. Since it can't find it in a header file, it tells you that you need to define it. For something similar to delay use Sleep() defined in winbase.h, but you can just include windows.h for convenience.
helbovine
02-09-2002, 02:08 PM
i cant seem to get #include <iostream.h> to work on dev-c++
Unregistered
02-09-2002, 03:20 PM
I have dev c++, iostream.h works just fine.
Xterria
02-09-2002, 09:16 PM
to knight:
Dev-C++ is a windows compiler, and delay() is normally defined in a dos compiler in dos.h. Though Dev-C++ has dos.h, it's a windows version of it.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.