Hesam Kamalan
New Member
hi,
in MicroC compiler, i have a challenge with "#include".
i want to add one file to my main programs. my files are: main.c, ds1307.c .
i added ds1307.c file in main.c file with include:
#include "ds1307.c"
but after that i click build, cpp.err appeared with this purporst:
i add ds1307.c to C Files in Project Summary.
how can i solve this problem?
in MicroC compiler, i have a challenge with "#include".
i want to add one file to my main programs. my files are: main.c, ds1307.c .
i added ds1307.c file in main.c file with include:
#include "ds1307.c"
but after that i click build, cpp.err appeared with this purporst:
Code:
e:/mikroelektronika/mikroc v8.0/usser/project1/main.c:2: error: Can't open include file "ds1307.c"
#include "ds1307.c"
from e:/mikroelektronika/mikroc v8.0/usser/project1/ds1307.c: 1: #include "main.c"
from e:/mikroelektronika/mikroc v8.0/usser/project1/main.c: 2: #include "ds1307.c"
from e.......
i add ds1307.c to C Files in Project Summary.
how can i solve this problem?