delay error

Feb 7, 2013 at 9:34am
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
#include <dos.h>

void main()
{
	 printf("1");
	 delay(1000);
	 printf("2");
	 delay(1000);
}


and it says
Compiling NONAME00.CPP:
Error NONAME00.CPP 9: Call to undefined function 'delay' in function main()

can you help me what;s wrong???
Feb 7, 2013 at 9:48am
The linker can not find definition of function delay. That is all. Check whether the function declared in dos.h and whether the corresponding library is included in the project.
Feb 7, 2013 at 9:52am
can you help me how to fix it???
Feb 7, 2013 at 9:54am
dos.h is a non-standard header. First of all check whether the declaration of delay is included in this header.
Feb 7, 2013 at 9:55am
Feb 7, 2013 at 9:58am
I am sorry but I do not see any reference.
Feb 7, 2013 at 9:58am
wew.. T_T ok tnx for the help
Topic archived. No new replies allowed.