compilation error on AIX 5.3 using xlC 9.0 - Aix

This is a discussion on compilation error on AIX 5.3 using xlC 9.0 - Aix ; Hi, I am getting following compilation error while compiling with our own front end. "/usr/vacpp/include/xlocale", line 461: error #77-D: this declaration has no storage class or type specifier _EXTERN_STATIC_DATA3(codecvt ) ^ "/usr/vacpp/include/xlocale", line 461: error #65: expected a ";" _EXTERN_STATIC_DATA3(codecvt ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: compilation error on AIX 5.3 using xlC 9.0

  1. compilation error on AIX 5.3 using xlC 9.0

    Hi,

    I am getting following compilation error while compiling with our own
    front end.



    "/usr/vacpp/include/xlocale", line 461: error #77-D: this declaration
    has no
    storage class or type specifier
    _EXTERN_STATIC_DATA3(codecvt)
    ^

    "/usr/vacpp/include/xlocale", line 461: error #65: expected a ";"
    _EXTERN_STATIC_DATA3(codecvt)
    ^

    "/usr/vacpp/include/xlocale", line 462: error #77-D: this declaration
    has no
    storage class or type specifier
    _EXTERN_STATIC_DATA3(codecvt)
    ^

    "/usr/vacpp/include/xlocale", line 462: error #247: variable
    "std::__ExternStaticData" has already been defined
    _EXTERN_STATIC_DATA3(codecvt)
    ^

    "/usr/vacpp/include/xlocale", line 462: error #65: expected a ";"
    _EXTERN_STATIC_DATA3(codecvt)
    ^

    "/usr/vacpp/include/xlocale", line 607: error #77-D: this declaration
    has no
    storage class or type specifier
    _EXTERN_STATIC_DATA3(codecvt)
    ^

    "/usr/vacpp/include/xlocale", line 607: error #247: variable
    "std::__ExternStaticData" has already been defined
    _EXTERN_STATIC_DATA3(codecvt)



    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.


    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.



    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

  2. 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:
    > Hi,
    >
    > I am getting following compilation error while compiling with our own
    > front end.
    >
    >

    > "/usr/vacpp/include/xlocale", line 461: error #77-D: this declaration
    > has no
    > storage class or type specifier
    > _EXTERN_STATIC_DATA3(codecvt)
    > ^
    >
    > "/usr/vacpp/include/xlocale", line 461: error #65: expected a ";"




    > _EXTERN_STATIC_DATA3(codecvt)
    > ^
    >
    > "/usr/vacpp/include/xlocale", line 462: error #77-D: this declaration
    > has no
    > storage class or type specifier
    > _EXTERN_STATIC_DATA3(codecvt)
    > ^
    >
    > "/usr/vacpp/include/xlocale", line 462: error #247: variable
    > "std::__ExternStaticData" has already been defined
    > _EXTERN_STATIC_DATA3(codecvt)
    > ^
    >
    > "/usr/vacpp/include/xlocale", line 462: error #65: expected a ";"
    > _EXTERN_STATIC_DATA3(codecvt)
    > ^
    >
    > "/usr/vacpp/include/xlocale", line 607: error #77-D: this declaration
    > has no
    > storage class or type specifier
    > _EXTERN_STATIC_DATA3(codecvt)
    > ^
    >
    > "/usr/vacpp/include/xlocale", line 607: error #247: variable
    > "std::__ExternStaticData" has already been defined
    > _EXTERN_STATIC_DATA3(codecvt)
    >

    >
    > 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.

    >
    > 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.
    >

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



+ Reply to Thread