Hi,
I made a stupid typo and accidentally included
an unprotected file from itself. The error
message generated by gcc surprised me and I
wondered if there was a better alternative.
$ cat recursive_include.c
#include "recursive_include.c"
$ gcc -c recursive_include.c
................
from recursive_include.c:1:
recursive_include.c:1:31: error: #include nested too deeply
$ gcc -c recursive_include.c 2>&1 | wc -l
200
Thanks.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherr...@oarcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985