[prog] undefined reference to itoa

Kathryn Hogg kjh at flyballdogs.com
Sun Dec 18 02:03:25 EST 2005


> which seems to be a linker error. I was quite sure that "itoa" is in
> stdlib,
> and i include stdlib in my code.

Perhaps you are confusing itoa() with atoi()?  The function you are
looking for is probably snprintf(buf, buflen, "%d", someint);

Of course  you could happily wrap that in a function of your own called
itoa().


-- 
Kathryn
http://womensfooty.com



More information about the Programming mailing list