From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14554 invoked by alias); 2 Oct 2005 05:23:03 -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 14538 invoked by uid 22791); 2 Oct 2005 05:23:00 -0000 Received: from rwcrmhc13.comcast.net (HELO rwcrmhc12.comcast.net) (204.127.198.39) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 02 Oct 2005 05:23:00 +0000 Received: from [192.168.1.100] (c-24-4-241-161.hsd1.ca.comcast.net[24.4.241.161]) by comcast.net (rwcrmhc13) with ESMTP id <2005100205225801500rntnhe>; Sun, 2 Oct 2005 05:22:58 +0000 Message-ID: <433F6EB0.60905@comcast.net> Date: Sun, 02 Oct 2005 05:23:00 -0000 From: Tom Williams User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) MIME-Version: 1.0 CC: gcc-help@gcc.gnu.org Subject: Re: [Fwd: Re: simple c++ program not compile in 4.0.2, please help] References: <1128229666.8605.12.camel@localhost.localdomain> In-Reply-To: <1128229666.8605.12.camel@localhost.localdomain> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2005-10/txt/msg00006.txt.bz2 I'm running an outdated Slackware 8-based system with custom upgrades, including a 2.6.13 kernel, gcc-4.0.2, and glibc-2.3.4. Peace... Tom fsshl wrote: > > ------------------------------------------------------------------------ > > 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: > > >>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 PURPOSE. >> >>tom@linux:~$ >> >>--------END----------------------- >> >>Peace... >> >>Tom >> >>fsshl wrote: >> >> >> >>>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 >>>‘std::codecvt_byname<_InternT, _ExternT, _StateT>::codecvt_byname(const >>>char*, size_t)’: >>>/usr/include/c++/4.0.2/bits/codecvt.h:458: error: ‘strcmp’ is not a >>>member of ‘std’ >>>/usr/include/c++/4.0.2/bits/codecvt.h:458: error: ‘strcmp’ is not a >>>member of ‘std’ >>>/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 ‘__cloc’ >>>/usr/include/c++/4.0.2/bits/locale_facets.h:1865: error: ‘__c_locale’ >>>has not been declared >>>/usr/include/c++/4.0.2/bits/locale_facets.h:1876: error: variable or >>>field ‘_M_initialize_numpunct’ declared void >>>/usr/include/c++/4.0.2/bits/locale_facets.h:1876: error: ‘int >>>std::numpunct::_M_initialize_numpunct’ is not a static member of >>>‘class std::numpunct’/usr/include/c >>>++/4.0.2/bits/locale_facets.h:1876: error: ‘__c_locale’ was not declared >>>in this scope >>>/usr/include/c++/4.0.2/bits/locale_facets.h:1884: error: variable or >>>field ‘_M_initialize_numpunct’ declared void >>>/usr/include/c++/4.0.2/bits/locale_facets.h:1884: error: ‘int >>>std::numpunct::_M_initialize_numpunct’ is not a static member >>>of ‘class std::numpunct’ >>>------------------------------------------------------- >>>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 >>> >>> >>> >>> >>> >>> >>>