From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7911 invoked by alias); 12 May 2002 16:27:21 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 7897 invoked from network); 12 May 2002 16:27:17 -0000 Received: from unknown (HELO fepD.post.tele.dk) (195.41.46.149) by sources.redhat.com with SMTP; 12 May 2002 16:27:17 -0000 Received: from tdcadsl.dk ([80.62.84.198]) by fepD.post.tele.dk (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20020512162716.NFDT7393.fepD.post.tele.dk@tdcadsl.dk> for ; Sun, 12 May 2002 18:27:16 +0200 Message-ID: <3CDE96D3.A5B6AD9D@tdcadsl.dk> Date: Sun, 12 May 2002 09:27:00 -0000 From: bjorn rohde jensen Reply-To: shamus@tdcadsl.dk X-Accept-Language: en MIME-Version: 1.0 CC: gcc-help@gcc.gnu.org Subject: Re: Error References: <20020512155016.12434.qmail@webmail10.rediffmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00116.txt.bz2 Hi Rahul, g++ is basically telling you, that the function Free is not declared in your code or any included header files. The int Free(...) bit, i think, comes from standard C, where one did not have to prototype functions, but one could rely on some implicit prototypes. ANSI C made prototypes a requirement. Yours sincerely, Bjorn Rahul it wrote: > > I am running a Cpp program and when I compile it with g++ it gives > me some error > like this > > In function `int main(...)': > program.cpp: implicit declaration of function `int Free(...) > > I donot know why is this? > The only way Free() appears in my program is > Free (str); > where str type is > char * str; > > Thanks > > _________________________________________________________ > Click below to visit monsterindia.com and review jobs in India or > Abroad > http://monsterindia.rediff.com/jobs