atoi & atof

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

atoi & atof

Jump to solution
1,901 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
756 Views
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.

 

 

View solution in original post

0 Kudos
Reply
1 Reply
757 Views
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 Kudos
Reply