Jonathan Valks

Linker error using command line linker for ColdFire V6.2

Discussion created by Jonathan Valks on Oct 16, 2008
Latest reply on Nov 5, 2008 by CrasyCat
I am using Code Warrior 6.2 to build a ColdFire MCF51QE128 target on the command line.

I am using the same set of source and build files as I did under CW 6.1, which worked OK. Now I find I am getting two linker errors, shown below.

### mwldmcf.exe Linker Error:
#   Undefined : "__fwide"
#   Referenced from "CmdError" in rs232.o
#   Referenced from "Getline" in rs232.o
#   Referenced from "ProcFatalError" in proc.o
#   Referenced from "Prompt" in rs232.o
### mwldmcf.exe Linker Error:
#   Undefined : "__put_char"
#   Referenced from "CmdError" in rs232.o
#   Referenced from "Getline" in rs232.o
#   Referenced from "ProcFatalError" in proc.o
#   Referenced from "Prompt" in rs232.o
### mwldmcf.exe Linker Error:
#   Link failed.

Errors caused tool to abort.
make: *** [a.out.elf] Error 1


I link with libraries fp_coldfire_nodiv_a, C_2i_CF_RegABI_MSL.a and C_2i_CF_RegABI_Runtime.a.

The common factor is a call to putchar() in my code. Do I need to rebuild the libraries with some #defines enabled to pull in these two library functions, or is there an option I can use so I don't need the functions, or is it something very simple I have overlooked? I don't get these errors using the CW 6.1 version of these libraries.

Thanks

J@MEJedimaster moved thread and added processor type to subject head


Message Edited by J2MEJediMaster on 2008-10-20 10:08 AM

Outcomes