Linker error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Linker error

12,916 次查看
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
标签 (1)
0 项奖励
回复
25 回复数

899 次查看
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 项奖励
回复

899 次查看
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 项奖励
回复

899 次查看
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 项奖励
回复

899 次查看
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 项奖励
回复

899 次查看
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 项奖励
回复