Building application using Ospace STL

sathyanarayana.singh_at_gmail.com
Date: 09/28/05


Date: 28 Sep 2005 09:21:42 -0700

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



Relevant Pages