AnsweredAssumed Answered

Problems with the linker in CW for MCU v10.5

Question asked by Riadh Kalthoumi on Dec 23, 2014
Latest reply on Dec 25, 2014 by Riadh Kalthoumi

Hello everyone,

 

I recently started working with CodeWarrior on the TRK-MPC5606B development board.

I used the project included in the DVD and I was able to run it on the board.

I then made a few changes to the code using standard C library built-in functions (nothing complicated, just printf, sprintf and some string manipulation functions).

The project was compiled but the linker failed to finish the build with the following error for each of the function used:

>undefined: 'sprintf'

>Referenced from 'main' in main_c.obj

C:/Freescale/CW MCU v10.5/MCU/PA_Tools/Command_Line_Tools/mwldeppc|Linker|Error

>Link failed.

Of course, the header files: string.h, stdio.h & stdlib.h are already included in the source code.

I also checked the include paths and the directory containing the necessary files is there (see screenshot below).

Capture.PNG.png

 

Any help would be appreciated.

 

Best Regards,

Riadh

Outcomes