while doing assembly code in Keil i got an error as C:\KEIL\C51\INC\ATMEL\REGX51.H(178): error A10: ATTEMPT TO DEFINE AN ALREADY DEFINED SYMBOL if i donot include the regx51 file the error is gone and i am able to build the code. why this error is coming. Eventhough in the regx51 file only the addresses of the SFR registers are mentioned still they are mentioning about the error..can you please give an explanation to this
why this error is coming.
For precisely the reason that error message tells you: that line of that header file defines something that's already been defined by some other part of the code. And since you're the only person in the world who has access to those other parts of your code, it'll be up to you to figure out where that other definition is. Actually having a look at the name being defined by that line of the header file should make it reasonably easy to find the conflicting one.