From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29522 invoked by alias); 24 Nov 2004 10:27:05 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 29040 invoked from network); 24 Nov 2004 10:26:39 -0000 Received: from unknown (HELO smtp0.libero.it) (193.70.192.33) by sourceware.org with SMTP; 24 Nov 2004 10:26:39 -0000 Received: from localhost (172.16.1.82) by smtp0.libero.it (7.0.027-DD01) id 40D2BD600237CB7C; Wed, 24 Nov 2004 11:26:38 +0100 Received: from [151.41.184.47] (151.41.184.47) by smtp1.libero.it (7.0.027-DD01) id 40CB29090649DA19; Wed, 24 Nov 2004 11:26:51 +0100 Received: from 127.0.0.1 (AVG SMTP 7.0.289 [265.4.1]); Wed, 24 Nov 2004 11:29:25 +0100 Message-ID: <25ad01c4d210$782e33a0$2fb82997@bagio> From: "Giovanni Bajo" To: Cc: References: <1101288663.41a454d70a0dc@webmail.fib.upc.es> Subject: Re: nurbs cannot be compiled with gcc 3.4 Date: Wed, 24 Nov 2004 12:44:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at libero.it serv3 X-SW-Source: 2004-11/txt/msg00890.txt.bz2 e7677215@est.fib.upc.edu wrote: > I need to install nurbs++-3.0.11 compiling it with gcc 3.4...., it > can be compiled with gcc 3.3 but it cannot be compiled with gcc 3.4, > it returns a lot of errors. I soved some problems of templates, but > there's one I can't solve : > > nurbs.cpp: In member function `BasicList > > PLib::NurbsCurve::tesselate(T, BasicList*) const [with T = > float, int N = 3]': > f_nurbs.cpp:56: instantiated from here > nurbs.cpp:5252: error: no matching function for call to > `BasicList >>>> BasicList(BasicList >)' > ../matrix/list.h:128: note: candidates are: > BasicList::BasicList(BasicList&) [with T = > PLib::Point_nD] nurbs.cpp: In member function > `BasicList > PLib::NurbsCurve N>::tesselate(T, BasicList*) const [with T = float, int N = 2]': Looks like you are attemping to bind a temporary to a non-const reference. This is invalid. More to the point, a copy constructor should always be declared as A(A const &), not A(A&). BasicList's copy constructor seems to violate this. BTW, when upgrading to 3.4, http://gcc.gnu.org/gcc-3.4/changes.html can be very helpful. Giovanni Bajo