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

Two files with the same name -> compile error

Project has two files with the same name "timers.c". One is from LwIP and another from FreeRTOS. Compilier returns warning and errors.

Warning: L6304W: Duplicate input file .\debug\timers.o ignored.
Error: L6218E: Undefined symbol sys_timeouts_mbox_fetch (referred from tcpip.o).
Error: L6218E: Undefined symbol sys_timeouts_init (referred from init.o).
Error: L6218E: Undefined symbol tcp_timer_needed (referred from tcp.o).


My solution is to rename one of files. But it is a bad practice since third-party libs should be unchanged.
Is there way to change output name for only file?

Parents
  • With a couple of exceptions, I too seldom use libraries with Keil, but when I use with other environments, I can have both release and debug builds of the library - and the debug builds contain debug information so the debugger can find the source code.

    On a PC, you practically always link library files.

    Next thing is that linking a library file doesn't stop you from looking at the library source code.

Reply
  • With a couple of exceptions, I too seldom use libraries with Keil, but when I use with other environments, I can have both release and debug builds of the library - and the debug builds contain debug information so the debugger can find the source code.

    On a PC, you practically always link library files.

    Next thing is that linking a library file doesn't stop you from looking at the library source code.

Children