From: G DOT DegliEsposti AT ads DOT it To: djgpp AT delorie DOT com Message-ID: Date: Wed, 19 Nov 1997 09:25:50 +0100 Subject: Re: Return by reference Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Precedence: bulk > I am migrating to djgpp from Borland C++, and I've found that >djgpp doesn't like return by reference symbol "&". Is this true? thx in >advance. GCC is a little exigent about file extensions... did you use .cc as your file extension? Otherwise it will try to compile your file as a C program, and return by reference is not allowed in ANSI C ! :-) could you please post a piece of code borland c++ likes and gcc does not? ciao Giacomo