From: "Daniel" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Error: Implicit declaration of function Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <21xC5.15366$YG5.30665@tor-nn1.netcom.ca> Date: Tue, 3 Oct 2000 23:02:41 -0400 NNTP-Posting-Host: 142.154.37.57 X-Complaints-To: abuse AT attcanada DOT ca X-Trace: tor-nn1.netcom.ca 970628286 142.154.37.57 (Tue, 03 Oct 2000 22:58:06 EDT) NNTP-Posting-Date: Tue, 03 Oct 2000 22:58:06 EDT Organization: AT&T Canada IES To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thank you Jack and Eli. If I have an interface in a header file (.h), do I still need a prototype? Daniel _________ "Eli Zaretskii" wrote in message news:Pine DOT SUN DOT 3 DOT 91 DOT 1001003075225 DOT 10028E-100000 AT is... > > On Mon, 2 Oct 2000, Daniel wrote: > > > Hello, I have a simple application that does not compile because of this > > function: > > print_result(a, x, power_for(a, x)); > > > > which cause the following error: > > app.cc(23) Error: Implicit declaration of function 'int power_for(...)' > > Put the prototype of power_for into the file app.cc, and the compiler > will stop complaining. > > > Please note that it compiles without any error with Borland 5.02. > > GCC in C++ mode defaults to stricter checks than other compilers.