Operating System - Linux
1752604 Members
4954 Online
108788 Solutions
New Discussion

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 1
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 !