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

Cpp Objects not getting included in hex file

Hi,

My project consists of c and c++ libraries. main function is in c source file.
Whenever i am trying to call c++ functions, it is compiling and linking without errors.
But c++ object are getting removed in hex (from map file).

What could be the reason ?

Parents
  • I have implemented the above 3 functions referring the file attachment from the link in retarget.c.
    But now the following error is popping up which is making me further confused.

    Error: L6200E: Symbol _sys_open multiply defined (by sys_io.o and retarget.o).
    

    If am removing sys_open function linker error says it is referencing the sys_open() ..

Reply
  • I have implemented the above 3 functions referring the file attachment from the link in retarget.c.
    But now the following error is popping up which is making me further confused.

    Error: L6200E: Symbol _sys_open multiply defined (by sys_io.o and retarget.o).
    

    If am removing sys_open function linker error says it is referencing the sys_open() ..

Children