This is the mail archive of the gcc-help@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]
Other format: [Raw text]

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.



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