This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Fwd: Re: simple c++ program not compile in 4.0.2, please help]


--- Begin Message ---
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
> >  
> >
> >
> >  
> >
> 

--- End Message ---

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]