Linker error

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

Linker error

12,963 Views
NT
Contributor I
I am new to Freescale Codewarrior. I am getting following errors.
 
Link Error : Undefined : "_d_div"
Link Error : Undefined : "_d_dtoi"
Link Error : Undefined : "_d_fgt"
Link Error : Undefined : "_d_mul"
Link Error : Undefined : "_d_utod"
Link Error : Undefined : "_f_ftod"
Link Error : Undefined : "_f_itof"
Link Error : Undefined : "_f_mul"
 
 
Can anyone help me solve this problem.
 
Thanks,
NT
Labels (1)
0 Kudos
Reply
25 Replies

903 Views
kef
Specialist I
d_mul is probably double type multiplication runtime routine. I guess you are linking with library compiled with floating point turned off. You should either go through the project wizard and specify you want floating point, or add to the project required library.
0 Kudos
Reply

903 Views
Salvatore
Contributor I

Hi,

I'm using CodeWarrior to ColdFire version 6.4

and I've the link error "Undefined: d_dtoi" and so on.

I'd like add to library in my project but I don't know which library.

0 Kudos
Reply

903 Views
Salvatore
Contributor I

Just more information,

I also added in the my project the library

C_4i_CF_FPU_StdABI_Runtime.a

C_4i_CF_FPU_StdABI_MSL.a

but the link problem is alway present.

Thanks

Salvatore

0 Kudos
Reply

903 Views
J2MEJediMaster
Specialist I

The 4i indicates that those are integer libraries. You want the libraries with floating-point support. I do not have the ColdFire docs handy, but you should try linking a library that has an "f" in the designator. Go with Crasycat's advice and look in the documentation to find out which libraries have floating-point support.

 

---Tom

0 Kudos
Reply

903 Views
CrasyCat
Specialist III

Hello

 

I do not have a V6.2 installed any more, but I would recommend you to look at the ColdFireV1_Build_Tools_Reference manual.

There should be a section called Coldfire Runtime Libraries which describes the correspondence between the library files and the options you are using to compile.

  

CrasyCat

0 Kudos
Reply