g++ AIX error



Hi can anyone help me with this error on AIX. I had installed the rpms
for AIX from the ibm site and hello.cpp is just a helloworld program
which is throwing these errors.



tuxtamer> g++ hello.cpp
In file included from
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/backward/iostream.h:31,
from hello.cpp:1:
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or
antiquated header. Please consider using one of the 32 headers found in
section 17.4.1.2 of the C++ standard. Examples include substituting the
<X> header for the <X.h> header for C++ includes, or <iostream> instead
of the deprecated header <iostream.h>. To disable this warning use
-Wno-deprecated.
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/wchar.h:299:
error: 'mbstate_t' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/wchar.h:302:
error: 'mbstate_t' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:71:
error: '::mbstate_t' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:145:
error: '::btowc' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:150:
error: '::fwide' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:151:
error: '::fwprintf' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:152:
error: '::fwscanf' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:155:
error: '::mbrlen' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:156:
error: '::mbrtowc' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:157:
error: '::mbsinit' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:158:
error: '::mbsrtowcs' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:161:
error: '::swprintf' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:162:
error: '::swscanf' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:164:
error: '::vfwprintf' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:168:
error: '::vswprintf' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:172:
error: '::vwprintf' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:176:
error: '::wcrtomb' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:187:
error: '::wcsrtombs' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:197:
error: '::wctob' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:198:
error: '::wmemcmp' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:199:
error: '::wmemcpy' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:200:
error: '::wmemmove' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:201:
error: '::wmemset' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:202:
error: '::wprintf' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:203:
error: '::wscanf' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:223:
error: '::wcsstr' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:
In function 'wchar_t* std::wcsstr(wchar_t*, const wchar_t*)':
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:227:
error: invalid conversion from 'const wchar_t*' to 'wchar_t*'
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:227:
error: initializing argument 1 of 'wchar_t* std::wcsstr(wchar_t*,
const wchar_t*)'
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:
At global scope:
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:229:
error: '::wmemchr' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:
In function 'wchar_t* std::wmemchr(wchar_t*, wchar_t, size_t)':
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:233:
error: invalid conversion from 'const wchar_t*' to 'wchar_t*'
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:233:
error: initializing argument 1 of 'wchar_t* std::wmemchr(wchar_t*,
wchar_t, size_t)'
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h:
At global scope:
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h:210:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h:210:
error: template argument 1 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h:210:
error: invalid type in declaration before ';' token
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h:212:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h:212:
error: template argument 1 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h:212:
error: invalid type in declaration before ';' token
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:67:
error: 'mbstate_t' in namespace 'std' does not name a type
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:237:
error: 'mbstate_t' does not name a type
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:307:
error: 'mbstate_t' does not name a type
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:
In static member function 'static int
std::char_traits<wchar_t>::compare(const wchar_t*, const wchar_t*,
size_t)':
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:323:
error: 'wmemcmp' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:
In static member function 'static const wchar_t*
std::char_traits<wchar_t>::find(const wchar_t*, size_t, const
wchar_t&)':
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:331:
error: invalid conversion from 'const wchar_t*' to 'wchar_t*'
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:331:
error: initializing argument 1 of 'wchar_t* std::wmemchr(wchar_t*,
wchar_t, size_t)'
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:
In static member function 'static wchar_t*
std::char_traits<wchar_t>::move(wchar_t*, const wchar_t*, size_t)':
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:335:
error: 'wmemmove' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:
In static member function 'static wchar_t*
std::char_traits<wchar_t>::copy(wchar_t*, const wchar_t*, size_t)':
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:339:
error: 'wmemcpy' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:
In static member function 'static wchar_t*
std::char_traits<wchar_t>::assign(wchar_t*, size_t, wchar_t)':
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:343:
error: 'wmemset' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/localefwd.h:
At global scope:
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/localefwd.h:124:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/localefwd.h:124:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/localefwd.h:126:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/localefwd.h:126:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:333:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:333:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:333:
error: explicit specialization of non-template '<type error>'
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:334:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:334:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:391:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:391:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:391:
error: explicit specialization of non-template '<type error>'
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:392:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:392:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2550:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2550:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2555:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2555:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2556:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2556:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2556:
error: template-id 'use_facet<<expression error> >' for 'const int&
std::use_facet(const std::locale&)' does not match any template
declaration
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2612:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2612:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2612:
error: template-id 'has_facet<<expression error> >' for 'bool
std::has_facet(const std::locale&)' does not match any template
declaration
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2677:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2677:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2682:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2682:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2683:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2683:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2683:
error: template-id 'use_facet<<expression error> >' for 'const int&
std::use_facet(const std::locale&)' does not match any template
declaration
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2739:
error: 'mbstate_t' was not declared in this scope
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2739:
error: template argument 3 is invalid
/opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2739:
error: template-id 'has_facet<<expression error> >' for 'bool
std::has_facet(const std::locale&)' does not match any template
declaration
tuxtamer>

.



Relevant Pages

  • compiling kernel
    ... scripts/kconfig/qconf.h:51: error: `e' was not declared in this scope ... scripts/kconfig/qconf.h:73: error: `int updateList' redeclared as different ... scripts/kconfig/qconf.h:8: error: forward declaration of `class ConfigList' ... ConfigLineEdit' ...
    (alt.os.linux.suse)
  • Re: What a stupid gcc!
    ... So you want all declarations to be global scope, ... should create a variable "i" of type integer with a scope of the braces that encloses the declaration, ... num = foo.integer; ... What's difficult about the concept that the scope is the innermost set of braces that enclose the declaration? ...
    (comp.lang.c)
  • ISO C++ compile error
    ... declaration of `x' with no type ... template class F, class T, class U> ...
    (comp.lang.cpp)
  • Re: Check whether an argument in command line is a number
    ... as part or all of their makeup: The compound statement in its entirety ... declarators of ordinary identifiers with block scope, ... each time the declaration is reached in the order of execution, ... also a block whose scope is a strict subset of the scope of the ...
    (comp.lang.c)
  • Re: Syntax for union parameter
    ... declaration. ... the scope extends from the point of the declaration to the end of the ... point of declaration and continues to the end of the translation unit. ... you can declare an identifier for a function or variable ...
    (comp.lang.c)