stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohd Tariq" <tariq.i...@gmail.com>
Subject Problems facing while using third party STL
Date Tue, 12 Dec 2006 16:49:42 GMT
Hi Senthil,

I am building a C++ Application with HP aCC 6.10 compiler. During build it
gave error about iterators "#2135" and  later we found that iterators are
not supported by HP aCC6.10.'s  STL.

So now I have been trying to use third party STL that we got from
http://incubator.apache.org/stdcxx/. I have build that library successfully.
I am using "+nostl" option to link it to 3rd party STL.

To check  we have written a small  cpp program  which prints "Hello". The
following are the compiler options that we gave to compile this file:

aCC -v +DD64 +W829,641 -D_RWSTD_USE_CONFIG -D_RWSTDDEBUG +z -mt
-Wc,-ansi_for_scope,on  +nostl -I/opt/aCC/include_std
-I/opt/aCC/include_std/iostream_compat  -I/home/stdcxx-4.1.3/include
-I/home/build1/nls -I/usr/include -I/usr -L/usr/lib/hpux64
-L/home/build1/lib -L/opt/langtools/lib/hpux64 -L/opt/aCC/lib/hpux64
-L/home/build1/rwtest -l:librwtest11D.a -l:libstd11D.so -l:
libstd11D.so.4.1.3 test.cpp

We are using +nostl option as mentioned in the acc programming guide which
would suppress all default -L and -I options. The options mentioned above in
bold are to include and link the third party libraries.

The sample program is:

#include<iostream>
using namespace std;
int main(){
    cout<<"Hello";
    return 0;
}


We are getting errors during the linking stage. The errors are:

ld: Unsatisfied symbol "std::__rw_std_streams" in file test.o
ld: Unsatisfied symbol "std::ios_base::_C_unsafe_clear(int,int)" in file
test.o
ld: Unsatisfied symbol "_HPMutexWrapper::lock(void*)" in file test.o
ld: Unsatisfied symbol "virtual table of __rw::__rw_thread_error" in file
test.o
ld: Unsatisfied symbol "type info of __rw::__rw_thread_error" in file test.o
ld: Unsatisfied symbol "_HPMutexWrapper::unlock(void*)" in file test.o

And when i compiled a sample program which contails templates it gave the
same error as before.
Please anyone help me in this regard,
Thanks and Regards

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message