Re: linking standard C funtions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sep 12, 2003, "Aaron Case" <aaron.case@xxxxxxxxxxxx> wrote:

> DSPTSUBS.C:864: `itoa' undeclared (first use this function)

Hmm...  Capital C in the extension?  This means the program is being
parsed as C++, so declarations must be present . itoa(), not being a
C standard function, is not declared in any of the C standard
headers, so you get this error.

If you want the program to be compiled as C, that is more lenient to
lack of declarations, rename the file such that the extension is .c,
or add `-x c' before the file name in the command line.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux