linking standard C funtions

Alexandre Oliva
Sat Sep 13 20:46:00 GMT 2003

On Sep 12, 2003, "Aaron Case" <> 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
Red Hat GCC Developer                 aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist                Professional serial bug killer

More information about the Gcc-help mailing list