simple c++ program not compile in 4.0.2, please help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
  



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux