I am trying to compile a source, but I get the error "Blocks nested too deeply". I would swear, though, that the nest level of the if block does not exceed six or seven. How to fix this?
I am trying to compile a source, but I get the error "Blocks nested too deeply". I would swear, though, that the nest level of the if block does not exceed six or seven. How to fix this?
Based on that error message, the most likely way to fix it is to re-think your design. But we can only guess if you don't show us any code.
abachler: "A great programmer never stops optimizing a piece of code until it consists of nothing but preprocessor directives and comments "
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
Heheh. That said, that many loops in a single function is likely to be very poor programming practice as well.Originally Posted by MK27
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Thats crazy !!!!!!!!
I cant imagine a program with 250 nested loops ..... (one inside another one inside another)
vril: How many levels of nested loops do you have?
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008
"the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
The code is chaotic and I claimed nowhere that it belongs to me. I am informed about the 250 limit, which cannot but surprise me, since the nest level is not more than 6-7 inlaid blocks.
Even old Turbo C ver. 1.01 for DOS (16 bits only) can next 81 levels deep, if you spread it across 8 or 9 functions.
What compiler are you using? Does any of the blocks call other blocks/functions, recursively?
Six or 7 levels deep doesn't seem right, but there are a few compilers that are mostly jokes out there.