tried to use itoa() in a flexis project but failed

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

tried to use itoa() in a flexis project but failed

3,881 Views
freegeek
Contributor III
As above, I tried to use this but in could not be found, I tried the following
 
#include <extras_stdlib.h>
and
#include <stdlib.h>
neither worked, any suggestions.
Labels (1)
0 Kudos
5 Replies

498 Views
CrasyCat
Specialist III
Hello
 
Are you targeting a HCS08 or a Coldfire V1 CPU?
 
CrasyCat


Message Edited by CrasyCat on 2007-08-28 12:13 PM
0 Kudos

498 Views
freegeek
Contributor III
It's a V1 EQ128.
0 Kudos

498 Views
CrasyCat
Specialist III
Hello
 
Just did a quick internal check.
 
In fact itoa is not a standard ANSI C function.
With our Coldfire V2, V3 & V4 tools, we provide this function in the MSL Extras library.
 
For some reason, the extras library are not part of the V1 tools delivery.
In order to convert an int to a string you can use the ANSI C function sprintf.
 
I will try to get a clear message around our plans for Coldfire V1 extras library going forward.
If we decide to remove them from the tool, we need to update the manual accordingly. 
 
CrasyCat
0 Kudos

498 Views
radioactive
Contributor I
Hello,
I'm using a Flexis coldfire part and have an application where I was using the itoa() function and I compiled and it worked as expected and it worked in my application.   Then "something" happened and it won't compile anymore and I get an error that says
"Link Error  :  Undefined " "__msl_itoa" 
"Referenced from "itoa" in C_4i_CF_RegABI_MSL.a"
I didn't change any compiler settings but it won't compile but I know it did at least once and worked.  I am completely out of ideas. 
I'm using CodeWarrior IDE version 5.9.0 build 2404
Any suggestions would be greatly appreciated!  I'm on my last hair.
J

itoa_error.gif



Message Edited by t.dowe on 2009-09-04 11:11 AM
0 Kudos

498 Views
CrasyCat
Specialist III
Hello
 
Apparently the linker does not find the implementation of the function __msl_itoa
 
I would recommend you to submit a service request for that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.
 
CrasyCat
0 Kudos