Linker error in Coldfire v2, CodeWarrior 7.1 to 7.2 conversion

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

Linker error in Coldfire v2, CodeWarrior 7.1 to 7.2 conversion

143 Views
ken67
Contributor I

I'm getting a:

"Error : Undefined "dtor_call(void*,void*,long)", Referenced from "@ex@_dtor_call(void*,void*,long)" in

error after converting code originally developed in CodeWarrior 7.1 to CodeWarrior 7.2. I've followed the instructions in NXP technical note 268 (and video) and fixed other new errors after compiling/linking with 7.2, this is the only error I haven't resolved.

-------------------------

Original 7.1 Settings:

iNSIGHT4 Settings/Code Generation/ColdFire Processor
Target Family: 5207_8 CPU: 5207

Libs:
fp_coldfire.a
C_4i_CF_RegABI_MSL.a
C_4i_CF_RegABI_Runtime.a

-------------------------

CodeWarrior 7.2 changed Settings:

iNSIGHT4 Settings/Linker/Librarian
Control libraries is checked
Library model: c9x

-------------------------

The code is C and assembler. I'm not aware of any C++ code.

Any ideas how to eliminate the error? Are there other Settings that could cause this error?

 

0 Kudos
Reply
3 Replies

93 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

The TN268 (Converting Projects to CodeWarrior ColdFire V7.2) has below description:

Hui_Ma_0-1724653059634.png

Please try to select the library mode to "ewl".

BTW: Please use attached CodeWarrior for MCF5208 projects do a test if meet the same linker error.

Best regards,

Mike

0 Kudos
Reply

79 Views
ken67
Contributor I

The projects in MCF520x_CWexample.zip don't generate the same linker error.

Using the "ewl" library mode generates the following errors (in 2408271052EwlLibraryErrors.txt file):

------------------------

Link Error : Undefined : "__strtoull"
Referenced from "__sformatterLL" in

Link Error : Undefined : "__strtoull"
Referenced from "__sformatter_FPLL" in

Link Error : Undefined : "__strtoull"
Referenced from "__sformatter_sLL" in

Link Error : Undefined : "__strtoull"
Referenced from "__sformatter_s_FPLL" in

Error : Undefined : "dtor_call(void*,void*,long)"
Referenced from "@ex@_dtor_call(void*,void*,long)" in

Link Error : Undefined : "strtof"
Referenced from "nanf" in

Link failed.

------------------------

Using the "c9x" library mode only generates the "Error : Undefined : "dtor_call(void*,void*,long)", Referenced from "@ex@_dtor_call(void*,void*,long)" in" error (2408271054c9xLibraryErrors.txt). Same thing when specifying the C:\Program Files\Freescale\CodeWarrior for ColdFire V7.2\ColdFire_Support\ewl\lib\v2\libc99.a library in the Libs folder while in "ewl" library mode.

0 Kudos
Reply

63 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Due to MCF520x_CWexample.zip related projects could build with CodeWarrior V7.2, could you compare related project build and linker configuration vs. your project. 

The project linker files also need be compared if there existing any big difference.

Wish it helps.

Mike

0 Kudos
Reply