- From: Irene Vatton <Irene.Vatton@inrialpes.fr>
- Date: Wed, 20 Jun 2007 12:59:25 +0200
- To: 石井裕介 <yusuke@sw.it.aoyama.ac.jp>
- Cc: www-amaya-dev@w3.org
On Wednesday 20 June 2007 11:54, 石井裕介 wrote: > I tried to compile Amaya.dsw on the System of Microsoft Visual C++ 6.0. > but, an error occurred in MathMLPanel.cpp . I'll let you know the detail as > follow. > > The error's detail is > > ...\Amaya\thotlib\dialogue\MathMLPanel.cpp (345) : fatal error C1061 : > restriction of compiler : The Level of nesting about block in the program > exceeded the maximum Okay, I changed "else if" into "else" > > The rise of nesting level must be stopped somewhere, I think so. > I can guess the reason that there are too many 'else if' not to be in the > permissible range. So, I suggest that All 'else if' should be changed to > 'if', or provide a tentative Int variable (for instance , name is 'flag'). > The second option is as follow. > > flag = 0; > > if(...) > else if... > else if... > else if... > ...... > else > flag = 1; > > if(flag == 1){ } > > if(....) > else if... > ..... > else > flag = 2; > > if(flag ==2){ } > .... same process repeats > > it means that firstly set the value of 'flag' as 0 and 'else if' treatment > repeats at constant times (for instance, 100 times) ,and at the last , > 'flag' is set to be 1. Next, the value of 'flag' is checked and if it is 1, > nothing happens and nesting level finishes and restarts as 'if' and 'else > if' repeated at 100 times, Every time 'else if' reached to 100 times , flag > ++ and nesting level finishes.As the result, nesting level never exceed > maximum. -- Irène. ----- Irène Vatton INRIA Rhône-Alpes INRIA ZIRST e-mail: Irene.Vatton@inria.fr 655 avenue de l'Europe Tel.: +33 4 76 61 53 61 Montbonnot Fax: +33 4 76 61 52 07 38334 Saint Ismier Cedex - France
Received on Wednesday, 20 June 2007 11:02:07 UTC