From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9614 invoked by alias); 7 Jul 2005 11:07:06 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 8736 invoked by uid 22791); 7 Jul 2005 11:06:54 -0000 Received: from [202.112.192.138] (HELO blcu-mail.blcu.edu.cn) (202.112.192.138) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 07 Jul 2005 11:06:54 +0000 Received: from freeman ([202.112.195.217]) by blcu-mail.blcu.edu.cn with Microsoft SMTPSVC(5.0.2195.6713); Thu, 7 Jul 2005 19:07:42 +0800 From: "wangxiuli" Reply-To: wangxiuli@blcu.edu.cn To: gcc-help@gcc.gnu.org Subject: some errors compiling a free program with gcc-3.2, gcc-3.4.4 and gcc-4.0.0 on i386 freebsd -5.2. Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: quoted-printable Date: Thu, 07 Jul 2005 11:07:00 -0000 Message-ID: X-SW-Source: 2005-07/txt/msg00068.txt.bz2 Hi makefile is as following=A3=BA $ cat Make_Demo #SOLARIS MAKEFILE #C++ =3D /usr/local/bin/CC C++ =3D /usr/local/newgcc-4/bin/g++-4.0.0 #C++=3DCC #C++ =3D /usr/local/GNU/bin/g++ #C++FLAGS =3D -Wall -g -D__OLDSTYLE_CPP__ #C++FLAGS =3D -g -Wall #C++FLAGS =3D -O -Wall #C++FLAGS =3D -g -sb -DDEBUG C++FLAGS =3D -g -O -DNEW_ATTOBJECT -DSTUDIES -DNOPOLLING -DCOMNET -DDELETI= ON_SPEC #C++FLAGS =3D -g -DSTUDIES PURIFYING =3D INCLUDE =3D . SOURCE =3D src/ BINDIR =3D OBJDIR =3D lib/ DEPEND =3D /usr/local/newgcc-4/bin/g++-4.0.0dep PGM_SRV =3D $(BINDIR)demo SRCS_SRV =3D demo1.C AttControl.C \ AttObject.C Graph.C AdjazenzMatrix.C List.C \ Token.C Tools.C Randomizer.C assert.C MappingData.C randomize.C \ initrandomize.C GMClass.C Matcher.C TimerSO.C TimerU.C MetaGraph.C \ ComNet.C NetworkNodes.C Multiindex.C Decision.C Decision1.C \ Decision2.C BRANCH_class.C LineDrawing.C Stroke.C OBJS_SRV =3D $(SRCS_SRV:.C=3D.o) ROBJS_SRV =3D $(OBJS_SRV:=3D$(OBJDIR)) RSRCS_SRV =3D $(SRCS_SRV:=3D$(SOURCE)) $(PGM_SRV): $(ROBJS_SRV) $(PURIFYING) $(C++) -o $(PGM_SRV) $(ROBJS_SRV) \ -lnsl \ -lX11 -lm $(OBJDIR).o: $(SOURCE).C $(C++) -c -I$(INCLUDE) $(C++FLAGS) $< -o $@ include dependencies_demo depend: $(C++) -E -MM -I$(INCLUDE) $(C++FLAGS) $(RSRCS_SRV) > ./dependencie= s_dem o the errors are as following when compiled=A3=BA $ gmake -f Make_Demo /usr/local/newgcc-4/bin/g++-4.0.0 -c -I. -g -O -DNEW_ATTOBJECT -DSTUDIES -= DNOPO LLING -DCOMNET -DDELETION_SPEC src/Graph.C -o lib/Graph.o In file included from /usr/local/newgcc-4/lib/gcc/i386-unknown-freebsd5.2.1= /4.0. 0/../../../../include/c++/4.0.0/backward/stream.h:31, from ./assert.h:4, from ./AdjazenzMatrix.h:21, from ./Graph.h:20, from src/Graph.C:1: /usr/local/newgcc-4/lib/gcc/i386-unknown-freebsd5.2.1/4.0.0/../../../../inc= lude/ c++/4.0.0/backward/backward_warning.h:32:2: warning: #warning This file inc= ludes at least one deprecated or antiquated header. Please consider using one of= the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include = subst ituting the header for the header for C++ includes, or = inst ead of the deprecated header . To disable this warning use -Wno= -depr ecated. src/Graph.C: In member function 'void Graph::set(int, int, double*, int)': src/Graph.C:200: error: no match for 'operator=3D' in 'at =3D AttributeClas= s::regist erLabel(int, double*, int)(label, values, n)' /AttObject.h:25: note: candidates are: AttId AttId::operator=3D(AttId&) /AttObject.h:27: note: AttId AttId::operator=3D(int) src/Graph.C: In member function 'void Graph::set(int, int, double*, int, vo= id*)' : src/Graph.C:215: error: no match for 'operator=3D' in 'at =3D AttributeClas= s::regist erLabel(int, double*, int)(label, values, n)' /AttObject.h:25: note: candidates are: AttId AttId::operator=3D(AttId&) /AttObject.h:27: note: AttId AttId::operator=3D(int) src/Graph.C: In member function 'void Graph::resetAttributes(int, int, doub= le*, int)': src/Graph.C:228: error: no match for 'operator=3D' in 'at =3D AttributeClas= s::regist erLabel(int, double*, int)(label, values, n)' /AttObject.h:25: note: candidates are: AttId AttId::operator=3D(AttId&) /AttObject.h:27: note: AttId AttId::operator=3D(int) src/Graph.C: In member function 'void Graph::resetEdgeAttributes(int, int, = doubl e*, int)': src/Graph.C:241: error: no match for 'operator=3D' in 'at =3D AttributeClas= s::regist erLabel(int, double*, int)(label, values, n)' /AttObject.h:25: note: candidates are: AttId AttId::operator=3D(AttId&) /AttObject.h:27: note: AttId AttId::operator=3D(int) src/Graph.C:243: error: no match for 'operator=3D' in 'at2 =3D AdjazenzMatr= ix::getEd geAttributeId(int, int*, int*)((* ie), (& n1), (& n2))' /AttObject.h:25: note: candidates are: AttId AttId::operator=3D(AttId&) /AttObject.h:27: note: AttId AttId::operator=3D(int) src/Graph.C: In member function 'void Graph::setEdge(int, int, int, int, do= uble* , int)': src/Graph.C:262: error: no match for 'operator=3D' in 'at =3D AttributeClas= s::regist erLabel(int, double*, int)(label, values, n)' /AttObject.h:25: note: candidates are: AttId AttId::operator=3D(AttId&) /AttObject.h:27: note: AttId AttId::operator=3D(int) src/Graph.C: In member function 'int Graph::getEdgesBetween(int, int, int, = int&, double*&, int&)': src/Graph.C:560: error: no match for 'operator=3D' in 'at =3D AdjazenzMatri= x::isNext EdgeAttId(int*)((& edge))' /AttObject.h:25: note: candidates are: AttId AttId::operator=3D(AttId&) /AttObject.h:27: note: AttId AttId::operator=3D(int) src/Graph.C: In member function 'void Graph::generateDistortions(SortedList= &, do uble)': src/Graph.C:767: error: no match for 'operator=3D' in 'i_at =3D AdjazenzMat= rix::isNe xtEdgeAttId(int*)((& edg))' /AttObject.h:25: note: candidates are: AttId AttId::operator=3D(AttId&) /AttObject.h:27: note: AttId AttId::operator=3D(int) src/Graph.C:786: error: no match for 'operator=3D' in 'at =3D AdjazenzMatri= x::isNext EdgeAttId(int*)((& edg))' /AttObject.h:25: note: candidates are: AttId AttId::operator=3D(AttId&) /AttObject.h:27: note: AttId AttId::operator=3D(int) src/Graph.C: In member function 'List* Graph::getMinimalCycles(int)': src/Graph.C:1004: error: no match for 'operator=3D' in 'at =3D AdjazenzMatr= ix::isNex tEdgeAttId(int*)((& edg))' /AttObject.h:25: note: candidates are: AttId AttId::operator=3D(AttId&) /AttObject.h:27: note: AttId AttId::operator=3D(int) src/Graph.C:1023: warning: converting to 'int' from 'double' gmake: *** [lib/Graph.o] error 1 the target and host machine is i386-freebsd-5.2.1 why? are those errors related to the version of gcc? please help best regard =20=09=09=09=09 =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1wangxiuli =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1wangxiuli@blcu.edu.cn =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12005-07-07