delorie.com/archives/browse.cgi | search |
Date: | Tue, 3 Oct 2000 07:53:05 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Daniel <cdnhermit DOT msn AT attcanada DOT net> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: Error: Implicit declaration of function |
In-Reply-To: | <Lk7C5.14267$YG5.29312@tor-nn1.netcom.ca> |
Message-ID: | <Pine.SUN.3.91.1001003075225.10028E-100000@is> |
MIME-Version: | 1.0 |
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 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |