[SOLVED] Ubuntu C++ Compiling Error
Posted: Mon May 31, 2010 3:02 am
g++ -Wall -o NAME NAME.cpp ERROR
What could be the issue on hand?
Code: Select all
/usr/include/c++/4.4/bits/streambuf_iterator.h: In function ‘int std::find(int, int, const _CharT&)’:
/usr/include/c++/4.4/bits/streambuf_iterator.h:355: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/streambuf_iterator.h:355: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/bits/streambuf_iterator.h:356: error: ‘__is_iterator_type’ is not a class or namespace
/usr/include/c++/4.4/bits/streambuf_iterator.h:356: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/bits/streambuf_iterator.h:357: error: ‘__is_iterator_type’ is not a class or namespace
/usr/include/c++/4.4/bits/streambuf_iterator.h:357: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/bits/streambuf_iterator.h:358: error: ‘traits_type’ is not a class or namespace
/usr/include/c++/4.4/bits/streambuf_iterator.h:358: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/bits/streambuf_iterator.h:360: error: request for member ‘_M_sbuf’ in ‘__first’, which is of non-class type ‘int’
/usr/include/c++/4.4/bits/streambuf_iterator.h:360: error: request for member ‘_M_sbuf’ in ‘__last’, which is of non-class type ‘int’
/usr/include/c++/4.4/bits/streambuf_iterator.h:362: error: ‘traits_type’ is not a class or namespace
/usr/include/c++/4.4/bits/streambuf_iterator.h:363: error: request for member ‘_M_sbuf’ in ‘__first’, which is of non-class type ‘int’
/usr/include/c++/4.4/bits/streambuf_iterator.h:364: error: request for member ‘sgetc’ in ‘__sb->’, which is of non-class type ‘streambuf_type’
/usr/include/c++/4.4/bits/streambuf_iterator.h:365: error: ‘traits_type’ is not a class or namespace
/usr/include/c++/4.4/bits/streambuf_iterator.h:365: error: ‘traits_type’ is not a class or namespace
/usr/include/c++/4.4/bits/streambuf_iterator.h:366: error: ‘traits_type’ is not a class or namespace
/usr/include/c++/4.4/bits/streambuf_iterator.h:368: error: request for member ‘egptr’ in ‘__sb->’, which is of non-class type ‘streambuf_type’
/usr/include/c++/4.4/bits/streambuf_iterator.h:368: error: request for member ‘gptr’ in ‘__sb->’, which is of non-class type ‘streambuf_type’
/usr/include/c++/4.4/bits/streambuf_iterator.h:371: error: ‘traits_type’ is not a class or namespace
/usr/include/c++/4.4/bits/streambuf_iterator.h:371: error: request for member ‘gptr’ in ‘__sb->’, which is of non-class type ‘streambuf_type’
/usr/include/c++/4.4/bits/streambuf_iterator.h:374: error: request for member ‘gptr’ in ‘__sb->’, which is of non-class type ‘streambuf_type’
/usr/include/c++/4.4/bits/streambuf_iterator.h:375: error: request for member ‘gbump’ in ‘__sb->’, which is of non-class type ‘streambuf_type’
/usr/include/c++/4.4/bits/streambuf_iterator.h:376: error: request for member ‘sgetc’ in ‘__sb->’, which is of non-class type ‘streambuf_type’
/usr/include/c++/4.4/bits/streambuf_iterator.h:379: error: request for member ‘snextc’ in ‘__sb->’, which is of non-class type ‘streambuf_type’
/usr/include/c++/4.4/bits/streambuf_iterator.h:382: error: ‘traits_type’ is not a class or namespace
/usr/include/c++/4.4/bits/streambuf_iterator.h:382: error: ‘traits_type’ is not a class or namespace
/usr/include/c++/4.4/bits/streambuf_iterator.h:383: error: request for member ‘_M_c’ in ‘__first’, which is of non-class type ‘int’
/usr/include/c++/4.4/bits/streambuf_iterator.h:385: error: request for member ‘_M_sbuf’ in ‘__first’, which is of non-class type ‘int’
In file included from /usr/include/c++/4.4/bits/basic_ios.h:39,
from /usr/include/c++/4.4/ios:45,
from /usr/include/c++/4.4/ostream:40,
from /usr/include/c++/4.4/iostream:40,
from HelloWorld.cpp:6:
/usr/include/c++/4.4/bits/locale_facets.h: At global scope:
/usr/include/c++/4.4/bits/locale_facets.h:111: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.h:112: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.h: In function ‘int std::__write(int, const _CharT*, int)’:
/usr/include/c++/4.4/bits/locale_facets.h:114: error: request for member ‘_M_put’ in ‘__s’, which is of non-class type ‘int’
In file included from /usr/include/c++/4.4/bits/basic_ios.h:39,
from /usr/include/c++/4.4/ios:45,
from /usr/include/c++/4.4/ostream:40,
from /usr/include/c++/4.4/iostream:40,
from HelloWorld.cpp:6:
/usr/include/c++/4.4/bits/locale_facets.h: At global scope:
/usr/include/c++/4.4/bits/locale_facets.h:1643: error: wrong number of template arguments (1, should be 3)
/usr/include/c++/4.4/bits/basic_string.h:104: error: provided for ‘template<class _CharT, class _Traits, class _Alloc> class std::basic_string’
/usr/include/c++/4.4/bits/locale_facets.h:1744: error: ‘string’ does not name a type
/usr/include/c++/4.4/bits/locale_facets.h:1812: error: ‘string’ does not name a type
/usr/include/c++/4.4/bits/locale_facets.h:1872: error: wrong number of template arguments (1, should be 3)
/usr/include/c++/4.4/bits/basic_string.h:104: error: provided for ‘template<class _CharT, class _Traits, class _Alloc> class std::basic_string’
/usr/include/c++/4.4/bits/locale_facets.h:2102: error: ‘string’ has not been declared
In file included from /usr/include/c++/4.4/bits/locale_facets.h:2599,
from /usr/include/c++/4.4/bits/basic_ios.h:39,
from /usr/include/c++/4.4/ios:45,
from /usr/include/c++/4.4/ostream:40,
from /usr/include/c++/4.4/iostream:40,
from HelloWorld.cpp:6:
/usr/include/c++/4.4/bits/locale_facets.tcc:123: error: expected ‘,’ or ‘...’ before ‘&’ token
/usr/include/c++/4.4/bits/locale_facets.tcc:131: error: ‘string’ has not been declared
/usr/include/c++/4.4/bits/locale_facets.tcc: In member function ‘_InIter std::num_get<_CharT, _InIter>::_M_extract_float(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, int&) const’:
/usr/include/c++/4.4/bits/locale_facets.tcc:190: error: ‘string’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc:190: error: expected ‘;’ before ‘__found_grouping’
/usr/include/c++/4.4/bits/locale_facets.tcc:192: error: ‘__found_grouping’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc:256: error: ‘__found_grouping’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc:263: error: request for member ‘clear’ in ‘__xtrc’, which is of non-class type ‘int’
/usr/include/c++/4.4/bits/locale_facets.tcc:277: error: ‘__found_grouping’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc:300: error: ‘__found_grouping’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc:336: error: ‘__found_grouping’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc: In member function ‘_InIter std::num_get<_CharT, _InIter>::_M_extract_int(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, _ValueT&) const’:
/usr/include/c++/4.4/bits/locale_facets.tcc:446: error: ‘string’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc:446: error: expected ‘;’ before ‘__found_grouping’
/usr/include/c++/4.4/bits/locale_facets.tcc:448: error: ‘__found_grouping’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc:494: error: ‘__found_grouping’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc:534: error: ‘__found_grouping’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc:547: error: ‘__found_grouping’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc: In member function ‘virtual _InIter std::num_get<_CharT, _InIter>::do_get(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, float&) const’:
/usr/include/c++/4.4/bits/locale_facets.tcc:674: error: ‘string’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc:674: error: expected ‘;’ before ‘__xtrc’
/usr/include/c++/4.4/bits/locale_facets.tcc:675: error: ‘__xtrc’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc: In member function ‘virtual _InIter std::num_get<_CharT, _InIter>::do_get(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, double&) const’:
/usr/include/c++/4.4/bits/locale_facets.tcc:689: error: ‘string’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc:689: error: expected ‘;’ before ‘__xtrc’
/usr/include/c++/4.4/bits/locale_facets.tcc:690: error: ‘__xtrc’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc: In member function ‘virtual _InIter std::num_get<_CharT, _InIter>::do_get(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, long double&) const’:
/usr/include/c++/4.4/bits/locale_facets.tcc:721: error: ‘string’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc:721: error: expected ‘;’ before ‘__xtrc’
/usr/include/c++/4.4/bits/locale_facets.tcc:722: error: ‘__xtrc’ was not declared in this scope
/usr/include/c++/4.4/bits/locale_facets.tcc: At global scope:
/usr/include/c++/4.4/bits/locale_facets.tcc:1266: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1267: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1279: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1280: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1280: error: template-id ‘use_facet<<expression error> >’ for ‘const int& std::use_facet(const std::locale&)’ does not match any template declaration
/usr/include/c++/4.4/bits/locale_facets.tcc:1283: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1284: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1284: error: template-id ‘use_facet<<expression error> >’ for ‘const int& std::use_facet(const std::locale&)’ does not match any template declaration
/usr/include/c++/4.4/bits/locale_facets.tcc:1296: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1296: error: template-id ‘has_facet<<expression error> >’ for ‘bool std::has_facet(const std::locale&)’ does not match any template declaration
/usr/include/c++/4.4/bits/locale_facets.tcc:1300: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1300: error: template-id ‘has_facet<<expression error> >’ for ‘bool std::has_facet(const std::locale&)’ does not match any template declaration
/usr/include/c++/4.4/bits/locale_facets.tcc:1305: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1306: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1318: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1319: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1319: error: template-id ‘use_facet<<expression error> >’ for ‘const int& std::use_facet(const std::locale&)’ does not match any template declaration
/usr/include/c++/4.4/bits/locale_facets.tcc:1322: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1323: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1323: error: template-id ‘use_facet<<expression error> >’ for ‘const int& std::use_facet(const std::locale&)’ does not match any template declaration
/usr/include/c++/4.4/bits/locale_facets.tcc:1335: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1335: error: template-id ‘has_facet<<expression error> >’ for ‘bool std::has_facet(const std::locale&)’ does not match any template declaration
/usr/include/c++/4.4/bits/locale_facets.tcc:1339: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/locale_facets.tcc:1339: error: template-id ‘has_facet<<expression error> >’ for ‘bool std::has_facet(const std::locale&)’ does not match any template declaration
In file included from /usr/include/c++/4.4/bits/basic_ios.h:471,
from /usr/include/c++/4.4/ios:45,
from /usr/include/c++/4.4/ostream:40,
from /usr/include/c++/4.4/iostream:40,
from HelloWorld.cpp:6:
/usr/include/c++/4.4/bits/basic_ios.tcc:178: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/basic_ios.tcc:181: error: template argument 2 is invalid
In file included from /usr/include/c++/4.4/ostream:565,
from /usr/include/c++/4.4/iostream:40,
from HelloWorld.cpp:6:
/usr/include/c++/4.4/bits/ostream.tcc:360: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/ostream.tcc:361: error: template-id ‘endl<>’ for ‘std::ostream& std::endl(std::ostream&)’ does not match any template declaration
/usr/include/c++/4.4/bits/ostream.tcc:362: error: template-id ‘ends<>’ for ‘std::ostream& std::ends(std::ostream&)’ does not match any template declaration
/usr/include/c++/4.4/bits/ostream.tcc:363: error: template-id ‘flush<>’ for ‘std::ostream& std::flush(std::ostream&)’ does not match any template declaration
/usr/include/c++/4.4/bits/ostream.tcc:364: error: ‘std::ostream& std::operator<<(std::ostream&, char)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/ostream.tcc:365: error: ‘std::ostream& std::operator<<(std::ostream&, unsigned char)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/ostream.tcc:366: error: ‘std::ostream& std::operator<<(std::ostream&, signed char)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/ostream.tcc:367: error: ‘std::ostream& std::operator<<(std::ostream&, const char*)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/ostream.tcc:368: error: ‘std::ostream& std::operator<<(std::ostream&, const unsigned char*)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/ostream.tcc:369: error: ‘std::ostream& std::operator<<(std::ostream&, const signed char*)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/ostream.tcc:371: error: ‘ostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:371: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:372: error: ‘ostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:372: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:373: error: ‘ostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:373: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:375: error: ‘ostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:375: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:376: error: ‘ostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:376: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:378: error: ‘ostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:378: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:379: error: ‘ostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:379: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:380: error: ‘ostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:380: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:383: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/ostream.tcc:384: error: template-id ‘endl<>’ for ‘std::wostream& std::endl(std::wostream&)’ does not match any template declaration
/usr/include/c++/4.4/bits/ostream.tcc:385: error: template-id ‘ends<>’ for ‘std::wostream& std::ends(std::wostream&)’ does not match any template declaration
/usr/include/c++/4.4/bits/ostream.tcc:386: error: template-id ‘flush<>’ for ‘std::wostream& std::flush(std::wostream&)’ does not match any template declaration
/usr/include/c++/4.4/bits/ostream.tcc:387: error: ‘std::wostream& std::operator<<(std::wostream&, wchar_t)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/ostream.tcc:388: error: ‘std::wostream& std::operator<<(std::wostream&, char)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/ostream.tcc:389: error: ‘std::wostream& std::operator<<(std::wostream&, const wchar_t*)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/ostream.tcc:390: error: ‘std::wostream& std::operator<<(std::wostream&, const char*)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/ostream.tcc:392: error: ‘wostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:392: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:393: error: ‘wostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:393: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:394: error: ‘wostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:394: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:396: error: ‘wostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:396: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:397: error: ‘wostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:397: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:399: error: ‘wostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:399: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:400: error: ‘wostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:400: error: ‘_M_insert’ is not a template function
/usr/include/c++/4.4/bits/ostream.tcc:401: error: ‘wostream’ is not a class or namespace
/usr/include/c++/4.4/bits/ostream.tcc:401: error: ‘_M_insert’ is not a template function
In file included from /usr/include/c++/4.4/iostream:41,
from HelloWorld.cpp:6:
/usr/include/c++/4.4/istream:592: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:593: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:594: error: invalid type in declaration before ‘(’ token
/usr/include/c++/4.4/istream:594: error: ‘char_type’ was not declared in this scope
/usr/include/c++/4.4/istream:594: error: ‘__s’ was not declared in this scope
/usr/include/c++/4.4/istream:594: error: expected primary-expression before ‘__n’
/usr/include/c++/4.4/istream:594: error: ‘char_type’ was not declared in this scope
/usr/include/c++/4.4/istream:594: error: initializer expression list treated as compound expression
/usr/include/c++/4.4/istream:597: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:598: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:599: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/istream:599: error: ‘ignore’ is not a template function
/usr/include/c++/4.4/istream:602: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:603: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:604: error: ‘int_type’ has not been declared
/usr/include/c++/4.4/istream:604: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/istream:604: error: ‘ignore’ is not a template function
/usr/include/c++/4.4/istream:608: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:609: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:610: error: invalid type in declaration before ‘(’ token
/usr/include/c++/4.4/istream:610: error: ‘char_type’ was not declared in this scope
/usr/include/c++/4.4/istream:610: error: ‘__s’ was not declared in this scope
/usr/include/c++/4.4/istream:610: error: expected primary-expression before ‘__n’
/usr/include/c++/4.4/istream:610: error: ‘char_type’ was not declared in this scope
/usr/include/c++/4.4/istream:610: error: initializer expression list treated as compound expression
/usr/include/c++/4.4/istream:613: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:614: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:615: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/istream:615: error: ‘ignore’ is not a template function
/usr/include/c++/4.4/istream:618: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:619: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:620: error: ‘int_type’ has not been declared
/usr/include/c++/4.4/istream:620: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/istream:620: error: ‘ignore’ is not a template function
/usr/include/c++/4.4/istream:740: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:741: error: template argument 2 is invalid
/usr/include/c++/4.4/istream:741: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/istream:741: error: ‘int& std::operator>>(int&, char*)’ must have an argument of class or enumerated type
In file included from /usr/include/c++/4.4/istream:830,
from /usr/include/c++/4.4/iostream:41,
from HelloWorld.cpp:6:
/usr/include/c++/4.4/bits/istream.tcc:971: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/istream.tcc:972: error: template-id ‘ws<>’ for ‘std::istream& std::ws(std::istream&)’ does not match any template declaration
/usr/include/c++/4.4/bits/istream.tcc:973: error: ‘std::istream& std::operator>>(std::istream&, char&)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/istream.tcc:974: error: ‘std::istream& std::operator>>(std::istream&, char*)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/istream.tcc:975: error: ‘std::istream& std::operator>>(std::istream&, unsigned char&)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/istream.tcc:976: error: ‘std::istream& std::operator>>(std::istream&, signed char&)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/istream.tcc:977: error: ‘std::istream& std::operator>>(std::istream&, unsigned char*)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/istream.tcc:978: error: ‘std::istream& std::operator>>(std::istream&, signed char*)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/istream.tcc:980: error: ‘istream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:980: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:981: error: ‘istream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:981: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:982: error: ‘istream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:982: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:983: error: ‘istream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:983: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:984: error: ‘istream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:984: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:986: error: ‘istream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:986: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:987: error: ‘istream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:987: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:989: error: ‘istream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:989: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:990: error: ‘istream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:990: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:991: error: ‘istream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:991: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:992: error: ‘istream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:992: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:994: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/istream.tcc:997: error: template argument 2 is invalid
/usr/include/c++/4.4/bits/istream.tcc:998: error: template-id ‘ws<>’ for ‘std::wistream& std::ws(std::wistream&)’ does not match any template declaration
/usr/include/c++/4.4/bits/istream.tcc:999: error: ‘std::wistream& std::operator>>(std::wistream&, wchar_t&)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/istream.tcc:1000: error: ‘std::wistream& std::operator>>(std::wistream&, wchar_t*)’ must have an argument of class or enumerated type
/usr/include/c++/4.4/bits/istream.tcc:1002: error: ‘wistream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:1002: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:1003: error: ‘wistream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:1003: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:1004: error: ‘wistream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:1004: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:1005: error: ‘wistream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:1005: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:1006: error: ‘wistream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:1006: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:1008: error: ‘wistream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:1008: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:1009: error: ‘wistream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:1009: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:1011: error: ‘wistream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:1011: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:1012: error: ‘wistream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:1012: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:1013: error: ‘wistream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:1013: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:1014: error: ‘wistream’ is not a class or namespace
/usr/include/c++/4.4/bits/istream.tcc:1014: error: ‘_M_extract’ is not a template function
/usr/include/c++/4.4/bits/istream.tcc:1016: error: template argument 2 is invalid
HelloWorld.cpp:7: error: expected unqualified-id before numeric constant
HelloWorld.cpp:9: error: expected unqualified-id before numeric constant