We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm not very familiar with keil and normally never include c files, i add them to a project.
But new to keil i added only my main.c to the project and included every *.c file in main.c.
While testing my code i found it too nasty so i added the c files to the project and removed the includes from main.c.
But after doing this i got a "MACROS TOO NESTED" error message like in this thread: http://www.keil.com/forum/docs/thread15729.asp.
Removing the c files from the project and reincluding them in main.c solved the problem. My code is running fine this way without a change.
Any idea why this happens? Am I doing something wrong when adding c files to the project?
It's quite impossible to offer any meaningful assistance based on the information you gave --- because there is effectively none at all.
The #include *.c issue almsot certainly has nothing to do with the actual problem. It's a classic red herring.
You should boil down the problem to the smallest example case you can find, and if the cause isn't brutally self-evident by then, post that reduced example here.
If it doesn-t have anything to do with including *.c files why does the code work if i include the *.c files in main.c and does not if added to the project?
I think my question was clear, why this happens is everything i like to know.