From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17146 invoked by alias); 2 Oct 2005 05:26:34 -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 17138 invoked by uid 22791); 2 Oct 2005 05:26:32 -0000 Received: from cluster1.bresnan.net (HELO cluster1.bresnan.net) (69.145.248.57) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 02 Oct 2005 05:26:32 +0000 Received: from [69.144.132.222] (HELO host-69-144-132-222.grf-mt.client.bresnan.net) by fe-1.cluster1.bresnan.net (CommuniGate Pro SMTP 4.3.7) with ESMTP id 289360148 for gcc-help@gcc.gnu.org; Sat, 01 Oct 2005 23:26:30 -0600 Subject: Re: [Fwd: Re: simple c++ program not compile in 4.0.2, please help] From: fsshl Reply-To: elins@bresnan.net To: gcc-help@gcc.gnu.org In-Reply-To: <433F6EB0.60905@comcast.net> References: <1128229666.8605.12.camel@localhost.localdomain> <433F6EB0.60905@comcast.net> Content-Type: text/plain; charset=UTF-8 Date: Sun, 02 Oct 2005 05:26:00 -0000 Message-Id: <1128230791.8605.15.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2005-10/txt/msg00007.txt.bz2 On Sat, 2005-10-01 at 22:22 -0700, Tom Williams wrote: > I'm running an outdated Slackware 8-based system with custom upgrades,=20 > including a 2.6.13 kernel, gcc-4.0.2, and glibc-2.3.4. thanks your info, My system may be lacking glibc-2.3.4 I will try to catch up thanks >=20 > Peace... >=20 > Tom >=20 > fsshl wrote: >=20 > > > > ------------------------------------------------------------------------ > > > > Subject: > > Re: simple c++ program not compile in 4.0.2, please help > > From: > > fsshl > > Date: > > Sat, 01 Oct 2005 23:01:07 -0600 > > To: > > Tom Williams > > > > To: > > Tom Williams > > > > > >so what is your linux distribution? > > > >On Sat, 2005-10-01 at 21:42 -0700, Tom Williams wrote: > >=20=20 > > > >>Your program compiles just fine with gcc 4.0.2 on my Linux system: > >> > >>------------START----------------- > >> > >>tom@linux:~$ cat gccbug.cpp > >>#include > >>using namespace std; > >>int main () { > >>cout << "hello world" << endl; > >> > >>return 0; > >>} > >>tom@linux:~$ make gccbug > >>g++ gccbug.cpp -o gccbug > >>tom@linux:~$ ./gccbug > >>hello world > >>tom@linux:~$ g++ --version > >>g++ (GCC) 4.0.2 > >>Copyright (C) 2005 Free Software Foundation, Inc. > >>This is free software; see the source for copying conditions. There is= NO > >>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURP= OSE. > >> > >>tom@linux:~$ > >> > >>--------END----------------------- > >> > >>Peace... > >> > >>Tom > >> > >>fsshl wrote: > >> > >>=20=20=20=20 > >> > >>>dear gcc advancer or programers: > >>> > >>> I had simple c++ file like to try in my ubuntu linux 5.10(kernel > >>>2.6.12-9) with gcc 4.0.2 > >>> > >>> ------------------ > >>> > >>>----------------------------------------------------------------------= --------------------- > >>>#include > >>>using namespace std; > >>>int main () { > >>>cout << "hello world" << endl; > >>> > >>>return 0; > >>>} > >>>----------------------------------------------------------------------= ------------- > >>>in this scope > >>>/usr/include/c++/4.0.2/bits/codecvt.h:392: error: template argument 3 = is > >>>invalid/usr/include/c++/4.0.2/bits/codecvt.h: In constructor > >>>=E2=80=98std::codecvt_byname<_InternT, _ExternT, _StateT>::codecvt_byn= ame(const > >>>char*, size_t)=E2=80=99: > >>>/usr/include/c++/4.0.2/bits/codecvt.h:458: error: =E2=80=98strcmp=E2= =80=99 is not a > >>>member of =E2=80=98std=E2=80=99 > >>>/usr/include/c++/4.0.2/bits/codecvt.h:458: error: =E2=80=98strcmp=E2= =80=99 is not a > >>>member of =E2=80=98std=E2=80=99 > >>>/usr/include/c++/4.0.2/bits/locale_facets.h: At global scope: > >>>/usr/include/c++/4.0.2/bits/locale_facets.h:1708: error: expected `)' > >>>before =E2=80=98__cloc=E2=80=99 > >>>/usr/include/c++/4.0.2/bits/locale_facets.h:1865: error: =E2=80=98__c_= locale=E2=80=99 > >>>has not been declared > >>>/usr/include/c++/4.0.2/bits/locale_facets.h:1876: error: variable or > >>>field =E2=80=98_M_initialize_numpunct=E2=80=99 declared void > >>>/usr/include/c++/4.0.2/bits/locale_facets.h:1876: error: =E2=80=98int > >>>std::numpunct::_M_initialize_numpunct=E2=80=99 is not a static m= ember of > >>>=E2=80=98class std::numpunct=E2=80=99/usr/include/c > >>>++/4.0.2/bits/locale_facets.h:1876: error: =E2=80=98__c_locale=E2=80= =99 was not declared > >>>in this scope > >>>/usr/include/c++/4.0.2/bits/locale_facets.h:1884: error: variable or > >>>field =E2=80=98_M_initialize_numpunct=E2=80=99 declared void > >>>/usr/include/c++/4.0.2/bits/locale_facets.h:1884: error: =E2=80=98int > >>>std::numpunct::_M_initialize_numpunct=E2=80=99 is not a stati= c member > >>>of =E2=80=98class std::numpunct=E2=80=99 > >>>------------------------------------------------------- > >>>the above is just the part of all errors which I can scroll my termianl > >>>window to go far front of post error from g++ or gcc compiler > >>> > >>>eric > >>>=20 > >>> > >>> > >>>=20 > >>> > >>>=20=20=20=20=20=20 > >>> >=20