From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6335 invoked by alias); 12 Feb 2008 22:46:08 -0000 Received: (qmail 6321 invoked by uid 22791); 12 Feb 2008 22:46:05 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0910.google.com (HELO rv-out-0910.google.com) (209.85.198.188) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Feb 2008 22:45:45 +0000 Received: by rv-out-0910.google.com with SMTP id g11so4445433rvb.56 for ; Tue, 12 Feb 2008 14:45:42 -0800 (PST) Received: by 10.141.167.5 with SMTP id u5mr1369533rvo.71.1202856342241; Tue, 12 Feb 2008 14:45:42 -0800 (PST) Received: from gx520 ( [70.165.104.146]) by mx.google.com with ESMTPS id l43sm1119573wrl.26.2008.02.12.14.45.40 (version=SSLv3 cipher=RC4-MD5); Tue, 12 Feb 2008 14:45:41 -0800 (PST) From: "David Arthur" To: References: <000301c86dc4$35920a00$500010ac@gx520> <8bc817ee0802121423k6350289nb2512325f3a3a910@mail.gmail.com> Subject: RE: STL problems in GCC 4.1.2 Date: Tue, 12 Feb 2008 22:46:00 -0000 Message-ID: <000401c86dc8$ff7391f0$500010ac@gx520> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <8bc817ee0802121423k6350289nb2512325f3a3a910@mail.gmail.com> Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg00110.txt.bz2 Well, here goes. I'll snip a chunk out of the middle to shorten the post! c++ -I/home/dart/src/dartnms/include -I/home/dart/src/plugappsdk/include -I= /home/dart/src/dartnms/plugins/dartnmsbase/include -I/home/dart/src/lib -D_= LINUX_ -Wno-deprecated -c -fpermissive -o /home/dart/src/dartnms/obj/main.o= /home/dart/src/dartnms/src/main.cpp /usr/include/c++/4.1.2/bits/stl_tree.h:330: error: expected identifier befo= re =C3=A2=E2=82=AC=CB=9C}=C3=A2=E2=82=AC=E2=84=A2 token /usr/include/c++/4.1.2/bits/stl_tree.h:330: error: expected unqualified-id = before =C3=A2=E2=82=AC=CB=9C}=C3=A2=E2=82=AC=E2=84=A2 token /usr/include/c++/4.1.2/bits/stl_tree.h:330: error: expected unqualified-id = before =C3=A2=E2=82=AC=CB=9Celse=C3=A2=E2=82=AC=E2=84=A2 /usr/include/c++/4.1.2/bits/stl_tree.h:791: error: no =C3=A2=E2=82=AC=CB=9C= std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& std::_Rb_tree<_Ke= y, _Val, _KeyOfValue, _Compare, _Alloc>::operator=3D(const std::_Rb_tree<_K= ey, _Val, _KeyOfValue, _Compare, _Alloc>&)=C3=A2=E2=82=AC=E2=84=A2 member f= unction declared in class =C3=A2=E2=82=AC=CB=9Cstd::_Rb_tree<_Key, _Val, _K= eyOfValue, _Compare, _Alloc>=C3=A2=E2=82=AC=E2=84=A2 /usr/include/c++/4.1.2/bits/stl_tree.h:791: error: template definition of n= on-template =C3=A2=E2=82=AC=CB=9Cstd::_Rb_tree<_Key, _Val, _KeyOfValue, _Co= mpare, _Alloc>& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::o= perator=3D(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)= =C3=A2=E2=82=AC=E2=84=A2 /usr/include/c++/4.1.2/bits/stl_tree.h: In member function =C3=A2=E2=82=AC= =CB=9Cstd::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& std::_Rb_tr= ee<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::operator=3D(const std::_Rb_t= ree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&)=C3=A2=E2=82=AC=E2=84=A2: /usr/include/c++/4.1.2/bits/stl_tree.h:797: error: =C3=A2=E2=82=AC=CB=9C_M_= impl=C3=A2=E2=82=AC=E2=84=A2 was not declared in this scope /usr/include/c++/4.1.2/bits/stl_tree.h: At global scope: /usr/include/c++/4.1.2/bits/stl_tree.h:813: error: =C3=A2=E2=82=AC=CB=9Ctyp= ename std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator st= d::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert=C3=A2=E2= =82=AC=E2=84=A2 is not a static member of =C3=A2=E2=82=AC=CB=9Cclass std::_= Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>=C3=A2=E2=82=AC=E2=84=A2 /usr/include/c++/4.1.2/bits/stl_tree.h:813: error: template definition of n= on-template =C3=A2=E2=82=AC=CB=9Ctypename std::_Rb_tree<_Key, _Val, _KeyOfV= alue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _C= ompare, _Alloc>::_M_insert=C3=A2=E2=82=AC=E2=84=A2 [...snip...] /usr/include/c++/4.1.2/bits/stl_tree.h:1485: error: =C3=A2=E2=82=AC=CB=9C__= x=C3=A2=E2=82=AC=E2=84=A2 was not declared in this scope /usr/include/c++/4.1.2/bits/stl_map.h: At global scope: /usr/include/c++/4.1.2/bits/stl_map.h:127: error: expected identifier befor= e =C3=A2=E2=82=AC=CB=9C}=C3=A2=E2=82=AC=E2=84=A2 token /usr/include/c++/4.1.2/bits/stl_map.h:127: error: expected unqualified-id b= efore =C3=A2=E2=82=AC=CB=9C}=C3=A2=E2=82=AC=E2=84=A2 token /usr/include/c++/4.1.2/bits/stl_map.h:127: error: expected unqualified-id b= efore =C3=A2=E2=82=AC=CB=9Celse=C3=A2=E2=82=AC=E2=84=A2 /usr/include/c++/4.1.2/bits/stl_multimap.h:142: error: expected identifier = before =C3=A2=E2=82=AC=CB=9C}=C3=A2=E2=82=AC=E2=84=A2 token /usr/include/c++/4.1.2/bits/stl_multimap.h:142: error: expected unqualified= -id before =C3=A2=E2=82=AC=CB=9C}=C3=A2=E2=82=AC=E2=84=A2 token /usr/include/c++/4.1.2/bits/stl_multimap.h:142: error: expected unqualified= -id before =C3=A2=E2=82=AC=CB=9Celse=C3=A2=E2=82=AC=E2=84=A2 make: *** [/home/dart/src/dartnms/obj/main.o] Error 1 Thanks, Dave -----Original Message----- From: Tom Browder [mailto:tom.browder@gmail.com]=20 Sent: Tuesday, February 12, 2008 4:23 PM To: David Arthur Cc: gcc-help@gcc.gnu.org Subject: Re: STL problems in GCC 4.1.2 On 2/12/08, David Arthur wrote: ... > I am trying to compile an app under gcc 4.1.2 and I get _loads_ of STL > errors, relating to templates in STL headers that are unhappy. The strange > thing is that all compiles beautifully under gcc 3.3.3! I have found that Lots of changes, and tightening of user code required, from 3.3.3 to 4.1.2. How about posting a couple of the error messages so we can see what kinds of errors you're talking about. -Tom