Hello all, Does anyone on the list know how to get the C18 compiler to accept variable declarations placed throughout a function (as opposed to just at the top)? I'm in the process of porting a large amount of code from a non-pic environment and the person who wrote the code declared the variables as needed. See a stripped down example below. Any help would be appreciated. Thanks. Ken //********************************* void main() { int i; i=1; // other code here int j; // C18 doesn't like this j=i+1; for(int k=0;k<5;k++) // C18 doesn't like this either { } } -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist