This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: implicit declaration of function `int _itoa(...)'




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





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]