X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Gerrit van Niekerk" Organization: GPvNO To: "Florian Xaver" , djgpp AT delorie DOT com Date: Thu, 28 Dec 2006 17:45:38 +0200 MIME-Version: 1.0 Subject: Re: 2 functions with same name... Message-ID: <459402C2.22881.6827D75@gerritvn.gpvno.co.za> In-reply-to: References: X-mailer: Pegasus Mail for Windows (4.41) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body 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 28 Dec 2006 at 15:52, Florian Xaver wrote: > why does > > int f(char*); > int f(char*, int); > > doesn't go(functions are also defined below)? GCC (version 4) tells, that > f is declared a second time. > Are you compiling C or C++? In C an error should be produced, in C++ not. Gerrit