linking standard C funtions
Alexandre Oliva
aoliva@redhat.com
Sat Sep 13 20:46:00 GMT 2003
On Sep 12, 2003, "Aaron Case" <aaron.case@dynazign.com> 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
More information about the Gcc-help
mailing list