This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MACROS TOO NESTED

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?

Parents
  • 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.

Reply
  • 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.

Children