Date: Tue, 3 Oct 2000 07:53:05 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Daniel cc: djgpp AT delorie DOT com Subject: Re: Error: Implicit declaration of function In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.