atoi & atof

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

atoi & atof

跳至解决方案
1,900 次查看
LPs1978
Contributor III

Hi all,

   I'm using codewarrior for ColdFire.

As saw in the help I'm trying to use atoi and atof C standard function in my project.

I included stdlib.h as requested, but the linker fails to find this function.

 

I saw that in stdlib there is the following code

 

#if !_MSL_C_TINY_IO
    using std::atof;
    using std::atoi;
    using std::atol;
#endif

 

The _MSL_C_TINY_IO is set to 0 as default.

 

Where is my error?

 

Thanks

标签 (1)
0 项奖励
回复
1 解答
755 次查看
LPs1978
Contributor III

I found out the solution on myself. I wrote it that could be useful for others.

 

The problem was that the C library included in my project  was C_4i_CF_SZ_MSL.a

 

This library is a compact one.

 

I substitute it with library C_4i_CF_StdABI_MSL.a and all is ok now.

 

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
756 次查看
LPs1978
Contributor III

I found out the solution on myself. I wrote it that could be useful for others.

 

The problem was that the C library included in my project  was C_4i_CF_SZ_MSL.a

 

This library is a compact one.

 

I substitute it with library C_4i_CF_StdABI_MSL.a and all is ok now.

 

 

0 项奖励
回复