This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CODECOMPOSER: Linker Fatal Error When Object File Not Present

Part Number: CODECOMPOSER


Tool/software:

Hello,

I want to maintain a single SysCfg file for two very similar projects but one project has fewer source files than the other.

With the following linker script:

    GROUP  :   {
    FAST_FUNCTIONS : {
        file_a.o(.text)
        file_b.o(.text)
    } align(8)
    } > R5F_TCMA  

file_a.c and file_b.c exist in Project A but not in Project B.

When Project B is linked I get an error:

I don't see why this should be a fatal error. So what if these files don't exist?

  • Is there a different syntax that avoid this error please?
  • If not, is there any way to make this error a warning instead please?

I want it to continue to make the build artefacts even if no file matches the pattern.

Thank you.