atoi & atof

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,842件の閲覧回数
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 解決策
697件の閲覧回数
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 返信
698件の閲覧回数
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 件の賞賛
返信