Porting from KPIT toolchain to Renesas RXC toolchain

I am trying to converte my project from a KPIT Toolchain to RXC toolchain, what I have done up till now is that I have generated the r_cg files using my previous settings on the KPIT Toolchain and then I imported the different header and application layer files I am working on.

It shows me the error

E0562300:Dublicate symbol in an obj file.

Any idea what this means and how I could go about solving it?

Thanks.

  • Hello, sebi.

    > KPIT Toolchain to RXC toolchain
    Are you trying to port source files from GNURX project to CC-RX project?

    > E0562300:Dublicate symbol in an obj file
    Simply you have same name of function or variable in two or more source files.
    Then find it and leave one of them.

  • Not source files, user defined files.

    The error does not specify any duplicate file location rather it points to the .obj files generated while building the project.

  • The error message is a linker error. The linker is working with the object files. So it is not surprising that the error message shows the object file name where the linker found the duplicate symbol definition. Still the explanation of Okra is correct.

  • I was able to successfully solve this not sure if this is the reason though, in my case I had defined a structure type in a header file and externed the structure to in another .c file. 

    However the .h header was being included in more than 4 .c files so it could be possible that the structure was being redefined there multiple times while it was being included.

    What I did is simply remove the structure type decleration to a .c file and externed the structure type to the header.

    Ps. Is it not a good method or standard to define structure types inside a .h file and include them later?