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
  • It sounds as though you must have a device specific header file included twice somehow. The device specific includes don't seem to have multi inclusion traps so it could be the same header file or two different ones.

    I think you'll just have to look more closely at your #include statements to find the problem.

    I think uvision automatically inserts the appropriate header file under certain circumsdances - this could be what is causing the problem when you change device.

    Stefan

Reply
  • It sounds as though you must have a device specific header file included twice somehow. The device specific includes don't seem to have multi inclusion traps so it could be the same header file or two different ones.

    I think you'll just have to look more closely at your #include statements to find the problem.

    I think uvision automatically inserts the appropriate header file under certain circumsdances - this could be what is causing the problem when you change device.

    Stefan

Children