www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/19/03:27:17

From: G DOT DegliEsposti AT ads DOT it
To: djgpp AT delorie DOT com
Message-ID: <C1256554.002CA68C.00@vega.ads.it>
Date: Wed, 19 Nov 1997 09:25:50 +0100
Subject: Re: Return by reference
Mime-Version: 1.0





>      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



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019