Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
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 !