public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* [Fwd: Re: simple c++ program not compile in 4.0.2, please help]
@ 2005-10-02  5:07 fsshl
  2005-10-02  5:23 ` Tom Williams
  0 siblings, 1 reply; 4+ messages in thread
From: fsshl @ 2005-10-02  5:07 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: Forwarded message - Re: simple c++ program not compile in 4.0.2, please help --]
[-- Type: message/rfc822, Size: 4540 bytes --]

From: fsshl <elins@bresnan.net>
To: Tom Williams <tomdkat@comcast.net>
Subject: Re: simple c++ program not compile in 4.0.2, please help
Date: Sat, 01 Oct 2005 23:01:07 -0600
Message-ID: <1128229267.8605.10.camel@localhost.localdomain>


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 <iostream>
> 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 <iostream>
> >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<char>::_M_initialize_numpunct’ is not a static member of
> >‘class std::numpunct<char>’/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<wchar_t>::_M_initialize_numpunct’ is not a static member
> >of ‘class std::numpunct<wchar_t>’
> >-------------------------------------------------------
> >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
> >  
> >
> >
> >  
> >
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Fwd: Re: simple c++ program not compile in 4.0.2, please help]
  2005-10-02  5:07 [Fwd: Re: simple c++ program not compile in 4.0.2, please help] fsshl
@ 2005-10-02  5:23 ` Tom Williams
  2005-10-02  5:26   ` fsshl
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Williams @ 2005-10-02  5:23 UTC (permalink / raw)
  Cc: gcc-help

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 <elins@bresnan.net>
> Date:
> Sat, 01 Oct 2005 23:01:07 -0600
> To:
> Tom Williams <tomdkat@comcast.net>
>
> To:
> Tom Williams <tomdkat@comcast.net>
>
>
>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 <iostream>
>>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 <iostream>
>>>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<char>::_M_initialize_numpunctÂ’ is not a static member of
>>>‘class std::numpunct<char>’/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<wchar_t>::_M_initialize_numpunctÂ’ is not a static member
>>>of ‘class std::numpunct<wchar_t>’
>>>-------------------------------------------------------
>>>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
>>> 
>>>
>>>
>>> 
>>>
>>>      
>>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Fwd: Re: simple c++ program not compile in 4.0.2, please help]
  2005-10-02  5:23 ` Tom Williams
@ 2005-10-02  5:26   ` fsshl
  2005-10-02 13:10     ` Ernest L. Williams Jr.
  0 siblings, 1 reply; 4+ messages in thread
From: fsshl @ 2005-10-02  5:26 UTC (permalink / raw)
  To: gcc-help

On Sat, 2005-10-01 at 22:22 -0700, Tom Williams wrote:
> 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.

thanks your info, My system may be lacking glibc-2.3.4
I will try to catch up

thanks

> 
> Peace...
> 
> Tom
> 
> fsshl wrote:
> 
> >
> > ------------------------------------------------------------------------
> >
> > Subject:
> > Re: simple c++ program not compile in 4.0.2, please help
> > From:
> > fsshl <elins@bresnan.net>
> > Date:
> > Sat, 01 Oct 2005 23:01:07 -0600
> > To:
> > Tom Williams <tomdkat@comcast.net>
> >
> > To:
> > Tom Williams <tomdkat@comcast.net>
> >
> >
> >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 <iostream>
> >>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 <iostream>
> >>>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<char>::_M_initialize_numpunct’ is not a static member of
> >>>‘class std::numpunct<char>’/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<wchar_t>::_M_initialize_numpunct’ is not a static member
> >>>of ‘class std::numpunct<wchar_t>’
> >>>-------------------------------------------------------
> >>>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
> >>> 
> >>>
> >>>
> >>> 
> >>>
> >>>      
> >>>
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Fwd: Re: simple c++ program not compile in 4.0.2, please help]
  2005-10-02  5:26   ` fsshl
@ 2005-10-02 13:10     ` Ernest L. Williams Jr.
  0 siblings, 0 replies; 4+ messages in thread
From: Ernest L. Williams Jr. @ 2005-10-02 13:10 UTC (permalink / raw)
  To: elins; +Cc: gcc-help

On Sat, 2005-10-01 at 23:26 -0600, fsshl wrote:
> On Sat, 2005-10-01 at 22:22 -0700, Tom Williams wrote:
> > 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.
> 
> thanks your info, My system may be lacking glibc-2.3.4
> I will try to catch up
Be sure to install the GCC distribution properly.
What package manager are you using to install things?


My Linux distro is "Fedora Core release 4 (Stentz)"
Kernel: 2.6.12-1.1447_FC4

I am using "gcc version 4.0.1" and glibc-2.3.90-12


I will try on gcc 4.0.2 when it lands in the stable FC4 repository.


Thanks,
Ernesto




> 
> thanks
> 
> > 
> > Peace...
> > 
> > Tom
> > 
> > fsshl wrote:
> > 
> > >
> > > ------------------------------------------------------------------------
> > >
> > > Subject:
> > > Re: simple c++ program not compile in 4.0.2, please help
> > > From:
> > > fsshl <elins@bresnan.net>
> > > Date:
> > > Sat, 01 Oct 2005 23:01:07 -0600
> > > To:
> > > Tom Williams <tomdkat@comcast.net>
> > >
> > > To:
> > > Tom Williams <tomdkat@comcast.net>
> > >
> > >
> > >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 <iostream>
> > >>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 <iostream>
> > >>>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<char>::_M_initialize_numpunct’ is not a static member of
> > >>>‘class std::numpunct<char>’/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<wchar_t>::_M_initialize_numpunct’ is not a static member
> > >>>of ‘class std::numpunct<wchar_t>’
> > >>>-------------------------------------------------------
> > >>>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
> > >>> 
> > >>>
> > >>>
> > >>> 
> > >>>
> > >>>      
> > >>>
> > 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-02 13:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-02  5:07 [Fwd: Re: simple c++ program not compile in 4.0.2, please help] fsshl
2005-10-02  5:23 ` Tom Williams
2005-10-02  5:26   ` fsshl
2005-10-02 13:10     ` Ernest L. Williams Jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).