compilation error on AIX 5.3 using xlC 9.0
Hi,
I am getting following compilation error while compiling with our own
front end.
<hr />
"/usr/vacpp/include/xlocale", line 461: error #77-D: this declaration
has no
storage class or type specifier
_EXTERN_STATIC_DATA3(codecvt<char, char, mbstate_t>)
^
"/usr/vacpp/include/xlocale", line 461: error #65: expected a ";"
_EXTERN_STATIC_DATA3(codecvt<char, char, mbstate_t>)
^
"/usr/vacpp/include/xlocale", line 462: error #77-D: this declaration
has no
storage class or type specifier
_EXTERN_STATIC_DATA3(codecvt<wchar_t, wchar_t, mbstate_t>)
^
"/usr/vacpp/include/xlocale", line 462: error #247: variable
"std::__ExternStaticData" has already been defined
_EXTERN_STATIC_DATA3(codecvt<wchar_t, wchar_t, mbstate_t>)
^
"/usr/vacpp/include/xlocale", line 462: error #65: expected a ";"
_EXTERN_STATIC_DATA3(codecvt<wchar_t, wchar_t, mbstate_t>)
^
"/usr/vacpp/include/xlocale", line 607: error #77-D: this declaration
has no
storage class or type specifier
_EXTERN_STATIC_DATA3(codecvt<wchar_t, char, mbstate_t>)
^
"/usr/vacpp/include/xlocale", line 607: error #247: variable
"std::__ExternStaticData" has already been defined
_EXTERN_STATIC_DATA3(codecvt<wchar_t, char, mbstate_t>)
<hr />
To avoid this error, I tried to build by passing the flag -
D__BUILD_RT__ while compilation.With this, the above mentioned error
could not be seen, but I got following new errors with xlC9.0
compiler.<hr />
command:
xlC_r -c -qnotempinc -qlanglvl=ansi -qlonglong -g -q32 schema.cxx -o
schema.o
ld: 0711-317 ERROR: Undefined symbol: std::_StdStringOldRefCount
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
informa
tion.
<hr />
Can any body please help me solving the above problems and tell how I
will get the value of keyword __ExternStaticData.
Thanks and Regards,
Reshma
Re: compilation error on AIX 5.3 using xlC 9.0
Can someone please have a look into the problem and help me to get the
value of the keyword "__ExternStaticData" in the compiler header
files.
On Apr 30, 4:09*pm, reshma.sha...@gmail.com wrote:[color=blue]
> Hi,
>
> I am getting following compilation error while compiling with our own
> front end.
>
> <hr />
> "/usr/vacpp/include/xlocale", line 461: error #77-D: this declaration
> has no
> storage class or type specifier
> _EXTERN_STATIC_DATA3(codecvt<char, char, mbstate_t>)
> ^
>
> "/usr/vacpp/include/xlocale", line 461: error #65: expected a ";"[/color]
[color=blue]
> _EXTERN_STATIC_DATA3(codecvt<char, char, mbstate_t>)
> ^
>
> "/usr/vacpp/include/xlocale", line 462: error #77-D: this declaration
> has no
> storage class or type specifier
> _EXTERN_STATIC_DATA3(codecvt<wchar_t, wchar_t, mbstate_t>)
> ^
>
> "/usr/vacpp/include/xlocale", line 462: error #247: variable
> "std::__ExternStaticData" has already been defined
> _EXTERN_STATIC_DATA3(codecvt<wchar_t, wchar_t, mbstate_t>)
> ^
>
> "/usr/vacpp/include/xlocale", line 462: error #65: expected a ";"
> _EXTERN_STATIC_DATA3(codecvt<wchar_t, wchar_t, mbstate_t>)
> ^
>
> "/usr/vacpp/include/xlocale", line 607: error #77-D: this declaration
> has no
> storage class or type specifier
> _EXTERN_STATIC_DATA3(codecvt<wchar_t, char, mbstate_t>)
> ^
>
> "/usr/vacpp/include/xlocale", line 607: error #247: variable
> "std::__ExternStaticData" has already been defined
> _EXTERN_STATIC_DATA3(codecvt<wchar_t, char, mbstate_t>)
> <hr />
>
> To avoid this error, I tried to build by passing the flag -
> D__BUILD_RT__ while compilation.With this, the above mentioned error
> could not be seen, but I got following new errors with xlC9.0
> compiler.<hr />
>
> command:
> xlC_r -c -qnotempinc -qlanglvl=ansi -qlonglong -g -q32 schema.cxx -o
> schema.o
>
> ld: 0711-317 ERROR: Undefined symbol: std::_StdStringOldRefCount
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> informa
> tion.
> <hr />
>
> Can any body please help me solving the above problems and tell how I
> will get the value of keyword __ExternStaticData.
>
> Thanks and Regards,
> Reshma[/color]