Linker error using command line linker for ColdFire V6.2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linker error using command line linker for ColdFire V6.2

1,389 Views
jmv
Contributor I
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
Labels (1)
0 Kudos
1 Reply

286 Views
CrasyCat
Specialist III
Hello
 
I did create a project from a stationery and I am using putchar.
The generated project does not use any function called _put_char or _fwide.
 
The issue you are facing is probably related to something specific in your environment,
 
I would recommend you to submit a service request for that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.

CrasyCat
0 Kudos