I just started using kile c51 compiler with µVision. My problem is only a stylistic issue. While initializing my controler: <dir>
unsigned char dummy1 = 0xFF; /* call openADC0 */ openADC0( dummy1 ); unsigned char dummy2 = 0xFF; /* call openADC0 */ openUART0( dummy2 );
Why am I not allowed to daclare another variable, after I called a function! Because you are using a C compiler, not a C++ compiler.
Thanks, I know but is there realy no compiler instruction for keil? Regards J.
"Thanks, I know" But, aparently, you didn't understand. "is there realy no compiler instruction for keil?" No, there isn't. Keil C51 is an ANSI 'C' compiler, and ANSI 'C' does not permit this. C++ does allow it, but ANSI 'C' does not.
No. I think You're right. But thanks a lot anyway J.
View all questions in Keil forum