Hi! I'm a newbie with using Keil C-51 Compiler! I want to compile a sourcecode and always recive Error 107 unbalanced #if-endif controls! I've looked to all statements and i can not find any mistakes! There is another one! Error 106 unclosed comment! In the compiler discribtion is written: it occurs if there is a '*/' missing, but i don't use comments like this /*--*/ only // comments! because if i am using this /*--*/ type the there is apearring another Error: like this error 141 in line ... near '/' please could anybody help me or give me an advise which is probably wrong! Thanks DANIEL
When having mismatched #if..#endif problems myself some time ago, I wrote a little PC utility to check them - I'll see if I can find it again... Meanwhile, have you tried GREP?
Well, now have i solved the most errors! It seems to be that the compiler don't like #defines which are calling a other #define for example: #XXX 10 #YYY 1000/XXX I think it causes the most problems. Now there only 4 errors left! I think i could solve them by myself, too. Thanks to all which have replaied! I'll be back!!! :) I am sure with new problems! Best regards DANIEL