• Syntax error on struct variable initialization
    I get syntax error for valid C-syntax. It seems like the compiler thinks that the initializer of the variable must come from a constant expression whereas a variable assignment should be accepted as...
  • Syntax error on struct variable initialization
    I get syntax error for valid C-syntax. It seems like the compiler thinks that the initializer of the variable must come from a constant expression whereas a variable assignment should be accepted as...
  • problem while giving input to 8051
    I have use following code for 8051 by NXP(p89v51rd2) #include<reg51.h> #define p2 P2 sfr P1=0x90; sbit led1=p2^0; sbit s=P1^0; void main() { s=1; while(1) { if(s==0) { led1=1; } else {...
  • problem while giving input to 8051
    I have use following code for 8051 by NXP(p89v51rd2) #include<reg51.h> #define p2 P2 sfr P1=0x90; sbit led1=p2^0; sbit s=P1^0; void main() { s=1; while(1) { if(s==0) { led1=1; } else {...
  • Error while trying to initialize printf/scanf with __FILE
    Hi All, I am using Keil uVision 5 with STM32F411RE I have a piece of code as follows (source http://www.keil.com/support/man/docs/armlib/armlib_chr1358938931411.htm ) #include <stdio.h> struct...