General
cancel
Showing results for 
Search instead for 
Did you mean: 

nested too deeply - Linux compilation error

SOLVED
Go to solution
sumanth_2
Occasional Contributor

nested too deeply - Linux compilation error

Hi,

I'm getting the following error during porting from HP-UX (aCC - 3.65 ) to Linux ( gcc (GCC) 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)).

#include nested too deeply

Any idea ?

Regards,
Sumanth
1 REPLY
Peter Godron
Honored Contributor
Solution

Re: nested too deeply - Linux compilation error

Hi,
" This error occurs if the preprocessor encounters too many nested â #includeâ directives. It is usually caused by two or more files trying to include each other, leading to an infinite recursion. Example:
/* foo.h */
#include "bar.h"
...
/* bar.h */
#include "foo.h"
...
The solution to this problem is to ensure that files do not mutually include each other "

Normally listed by module cpplib.c

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

So far you have not awarded any points !