This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I get error redefinition when I use target device DS87C550

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.

Parents
  • 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

Reply
  • 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

Children
No data