Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: swamp-dog AT ntlworld DOT com (Guy Harrison) To: Subject: Re: porting problem Date: Thu, 21 Mar 2002 23:35:40 GMT Message-ID: <3c9b6989.715803370@smtp.ntlworld.com> References: <001a01c1d120$84089c40$0400000a AT CANTV DOT NET> In-Reply-To: <001a01c1d120$84089c40$0400000a@CANTV.NET> X-Mailer: Forte Agent 1.5/32.451 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g2LNbYT26695 On Thu, 21 Mar 2002 17:36:46 -0400, "Gabriel Antonio Arcos Acosta" wrote: >I'm trying to port a program that was originally designed on IRIX system >with Delta/C++ compiler over a SGI Indy box. When I try to compile one of >the source files this error appear: > >$ gcc -w -g -I/usr/X11R6/include Chandler.cc -c -o Chandler.o >Chandler.cc: In method `void Chandler::GenerarPuntos(Complejo &, char = 0, >char >= 1)': >Chandler.cc:59: initialization of non-const reference type `class Complejo >&' >Chandler.cc:59: from rvalue of type `Complejo' >Lemniscata.h:130: in passing argument 1 of >`Lemniscata::FuncionCaracteristica(Co >mplejo &)' >Chandler.cc:100: initialization of non-const reference type `class Complejo >&' >Chandler.cc:100: from rvalue of type `Complejo' >Lemniscata.h:130: in passing argument 1 of >`Lemniscata::FuncionCaracteristica(Co >mplejo &)' > >Can someone tell what this error means? I'm using the gcc compiler on Win98 >with cygwin. The source compile well on the Indy box. Highly unlikely to be either a cygwin or gcc issue. Try DejaNews on comp.lang.c++ for the reason. Hint: struct X { X(/*const*/ string &){} }; main() {X x("fred"); return 0; } -- swamp-dog AT ntlworld DOT com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/