This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: implicit declaration of function `int _itoa(...)'
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: implicit declaration of function `int _itoa(...)'
- From: Timothy_Ko at nag dot national dot com dot au
- Date: Tue, 3 Apr 2001 14:29:43 +1000
- cc: gcc at gcc dot gnu dot org
Hi Alexandre,
Thanks for your reply.
I have a very tiny little test program display as below:
#include <iostream>
#include <fstream>
#include <string>
#include <stdio.h>
using namespace std
int main(int argc, char* argv[])
{
char cBuf[11];
long lNum = 123;
sprintf(cBuf, "%ld", lNum); <---- work
cout << cBuf << endl;
itoa(lNum, cBuf, 10); <--- implicit declaration of function `int
_itoa(...)'
cout << cBuf << endl;
return 0;
}
Can you help me?
Thank heaps
Tim
Alexandre Oliva <aoliva@redhat.com> on 03/04/2001 02:08:48 PM
To: Timothy Ko/VIC/NAB/NAG_AP
cc: gcc@gcc.gnu.org
Subject: Re: implicit declaration of function `int _itoa(...)'
Category:
On Apr 2, 2001, Timothy_Ko@nag.national.com.au wrote:
>> From the message of implicit declaration of function `int
>> _itoa(...)', I think I don't have itoa function installed.
Where does this message come from? I.e., which source file, which
line? What's there in that line?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me