This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Compilling cpp files.
- From: lrtaylor at micron dot com
- To: <jose at gcb dot com dot br>, <gcc-help at gcc dot gnu dot org>
- Date: Thu, 3 Jun 2004 13:26:11 -0600
- Subject: RE: Compilling cpp files.
It sounds like you need to include the header file that has the definition for printf in it. If you're doing C++, include cstdio: '#include <cstdio>'. If you're doing C, include stdio.h: '#include <stdio.h>'.
The compiler should normally know where to find them. If it says that it can't find them, then we need to know more information about your environment. For example, what operating system are you using?
Thanks,
Lyle
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of José Antonio Pinto
Sent: Thursday, June 03, 2004 10:19 AM
To: gcc-help@gcc.gnu.org
Subject: Compilling cpp files.
I'm whit problems then compiler files .cpp an others.
Do not exist stdio.h, matc.h, etc.
Where find this files or peckages???
Error message: teste.cpp:7: error: `printf' undeclared (first use
this function)
Yours truly,
José Antonio Pinto.