I write a program using Keil C for 89C52. This program is successfully compiled. But when I choose another microcontroller (DS87C550), but I still keep the same program ( I just change the hearder file ), it get error like this : P0 redefinition, P1 redefinition, .... If anyone know how to solve this, please post your thread here or send an email to me : duyduong@vitek.com.vn. Thanks in advance.
Maybe you have written these lines at the begginig of your program something look like this: #include "regs.h" #include "regs2.h" names of header files are only for example. You must define symbols only at once. So chceck using of header files. Radim