Kenneth Lumia wrote: > //********************************* > void main() > { > int i; > > i=1; > > // other code here > { // ADDED GDAR > int j; // C18 doesn't like this > > j=i+1; > > for(int k=0;k<5;k++) // C18 doesn't like this either > { > } } //ADDED GDAR > > } > It's not a matter of C18 :) it's standard C. You have to create a new block, in order to define new variables. The above should work. -- Ciao, Dario -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist