delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Message-ID: | <4593DF83.4030004@mainstreetsoftworks.com> |
Date: | Thu, 28 Dec 2006 10:15:15 -0500 |
From: | Brad House <brad AT mainstreetsoftworks DOT com> |
User-Agent: | Thunderbird 1.5.0.8 (X11/20061213) |
MIME-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
Subject: | Re: 2 functions with same name... |
References: | <op DOT tk9x97ybfbdswm AT arachne> |
In-Reply-To: | <op.tk9x97ybfbdswm@arachne> |
Reply-To: | djgpp AT delorie DOT com |
Not sure what you're asking, but it seems like you're trying to use function overloading which is a C++ feature, C doesn't support it... if you need overloading, compile it as C++. -Brad Florian Xaver wrote: > Hi, > > 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. > > Thanks > --Florian Xaver > >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |