#include <reg51.h> //#include "sample delay.h" void MSDelay(unsigned int); void main(void) { while (1) //repeat forever { P1=0x55; MSDelay(250); P1=0xAA; MSDelay(250); } }
#include "sample delay.h" void MSDelay(unsigned int itime) { unsigned int i,j; for (i=0;i<itime;i++) for (j=0;j<1275;j++); }
while do build it displays a warning message in the build window as below sample delay.c(1): warning C318: can't open file 'sample delay.h' please help me in finding out the causes for this warning.
hi andy neil, i followed your reference,according to the definition given in the thread, i tried to solve the warning by adding include file in the below method try 1)workspace>target1 right click>add files to target1>c51>msdelay try 2)workspace>source group1 right click>add files to source group>c51>msdelay