LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

error: include files are nested too deeply

By compiling my project I get lots of errors which are:
 
"include files nested too deeply"
 
What can I do?
Florian
0 Kudos
Message 1 of 3
(21,574 Views)
Hi Florian,
 
   Just an idea, but see if your #include directives are causing a circular reference.  Foo.h includes Bar.h, and Bar.h includes Foo.h.  If this is the case, and if you have personal control over what is in the headers, you might be able to move elements from one of them into the other one so that the circular reference no longer exists.
 
Orlan

Message Edited by cosmo on 07-15-2005 07:50 AM

0 Kudos
Message 2 of 3
(21,570 Views)

You've hit the limit of nested header files (which is 32, see the compiler limits section in the CVI help). In addition to what cosmo mentioned, you could also try wrapping the header with ifdefs

#ifndef MY_INCLUDE
#define MY_INCLUDE

//header file contents

#endif



Bilal Durrani
NI
0 Kudos
Message 3 of 3
(21,562 Views)