Building application using Ospace STL - HP UX

This is a discussion on Building application using Ospace STL - HP UX ; Hi, I am trying to build an huge C++ applicaltin using the ospace STL on HP Itanium. I am using the following flags in the .../ospace/config/local.cfg. -DOS_HPUX_11_00 -DOS_NEW_CHECK -DOS_STL_ASSERT -DOS_NO_WSTRING -DOS_NO_ALLOCATORS -DOS_ALTERNATIVE_NAMES -D OS_OSPACE_STD_NAMESPACE But now I am getting the ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Building application using Ospace STL

  1. Building application using Ospace STL

    Hi,
    I am trying to build an huge C++ applicaltin using the ospace STL
    on HP Itanium. I am using the following flags in the
    .../ospace/config/local.cfg.
    -DOS_HPUX_11_00 -DOS_NEW_CHECK -DOS_STL_ASSERT -DOS_NO_WSTRING
    -DOS_NO_ALLOCATORS -DOS_ALTERNATIVE_NAMES -D
    OS_OSPACE_STD_NAMESPACE

    But now I am getting the following errors.
    Error 711: "/home/ospace/HP-UX/ospace/stl/vector.cc", line 25 # There
    is no
    matching declaration for 'os_vector' in namespace "namespace
    os_std".
    os_std:s_vector OS_ALLOCATE_ARG_2( T, Allocator ) ::reserve
    ^^^^^^^^^
    Error 452: "/home/ospace/HP-UX/ospace/stl/vector.cc", line 25 # Objects
    may
    not have void type.
    os_std:s_vector OS_ALLOCATE_ARG_2( T, Allocator ) ::reserve
    ^^^^^^^^^
    Error 24: "/home/ospace/HP-UX/ospace/stl/vector.cc", line 25 # ','
    expected
    instead of '<'.
    os_std:s_vector OS_ALLOCATE_ARG_2( T, Allocator ) ::reserve
    ^^^^^^^^^^^^^^^^^
    Error 643: "/home/ospace/HP-UX/ospace/stl/vector.cc", line 25 #
    Template type
    parameter 'T' may not be redeclared within the scope of the
    template.
    os_std:s_vector OS_ALLOCATE_ARG_2( T, Allocator ) ::reserve
    ^^^^^^^^^^^^^^^^^
    Error 173: "/home/ospace/HP-UX/ospace/stl/vector.cc", line 25 #
    Redefined
    symbol 'T'; previously defined at
    ["/home/ospace/HP-UX/ospace/stl/vector.cc", line 23].
    os_std:s_vector OS_ALLOCATE_ARG_2( T, Allocator ) ::reserve
    ^^^^^^^^^^^^^^^^^
    Error 452: "/home/ospace/HP-UX/ospace/stl/vector.cc", line 25 # Objects
    may
    not have void type.
    os_std:s_vector OS_ALLOCATE_ARG_2( T, Allocator ) ::reserve
    ^^^^^^^^^^^^^^^^^
    Error 611: "/home/HP-UX/ospace/stl/vector.cc", line 24 # Only one
    template may be declared in each template declaration.
    void
    ^^^^

    Does anyone have an idea as to how to resolve this?

    Thanks in advance.
    -Sathya


  2. Re: Building application using Ospace STL

    Sathya wrote:
    : I am trying to build an huge C++ application using the ospace STL
    : on HP Itanium.

    What version of aC++ are you using?

    : I am using the following flags in the
    : -DOS_HPUX_11_00 -DOS_NEW_CHECK -DOS_STL_ASSERT -DOS_NO_WSTRING
    : -DOS_NO_ALLOCATORS -DOS_ALTERNATIVE_NAMES -DOS_OSPACE_STD_NAMESPACE

    The IPF default has -Aa. But you could add -AA to that list.

    : But now I am getting the following errors.
    : Error 711: "/home/ospace/HP-UX/ospace/stl/vector.cc", line 25 # There is no
    : matching declaration for 'os_vector' in namespace "namespace os_std".
    : os_std:s_vector OS_ALLOCATE_ARG_2( T, Allocator ) ::reserve
    : ^^^^^^^^^
    : Does anyone have an idea as to how to resolve this?
    : -Sathya

    I'm not sure of it is a macro problem but you may want to compile with:
    -E -.i

    Then look at those lines. And make sure os_vector is defined in os_std,
    before this line.
    And compile that .i file and see what errors you get after macros are
    expanded.

  3. Re: Building application using Ospace STL

    I am using aCC: HP aC++/ANSI C B3910B A.05.52 [Jan 16 2004] ..
    Basically this code compiles without problem on aCC: HP ANSI C++ B3910B
    A.03.50 compiler. I am trying to port the code from HPUX to HP
    Itanium..


+ Reply to Thread