| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| From: | "Gerrit van Niekerk" <gerritvn AT gpvno DOT co DOT za> |
| Organization: | GPvNO |
| To: | "Florian Xaver" <wosrediinanatour AT aon DOT at>, 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: | <op.tk9x97ybfbdswm@arachne> |
| References: | <op DOT tk9x97ybfbdswm AT arachne> |
| X-mailer: | Pegasus Mail for Windows (4.41) |
| 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 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |