Symbol differences in STLport library and application object file


 
Thread Tools Search this Thread
Top Forums Programming Symbol differences in STLport library and application object file
# 1  
Old 03-24-2011
Symbol differences in STLport library and application object file

Hello,

I compiled the object file of a binary and i could see the symbol , "void*std::__node_alloc<1,0>::_M_allocate(unsigned)", this is actually present as "void*std::__node_alloc<true,0>::_M_allocate(unsigned)" in the libstlport4.so.1 . This has been verified with "nm -C " command

Please suggest ! Do i need to change the code ?

Shafi
# 2  
Old 03-24-2011
True is 1.
# 3  
Old 03-24-2011
I am getting symbol referencing errors due to that mismatch and not able to build the executable... Same thing is happening for bool Vs int (Rebalance....)
# 4  
Old 04-14-2011
The above error got resolved by adding a STLport compiler(user defined option) "-D_STLP_USE_NEWALLOC" but the other errror still comes and binary is not built due to that.. Other error shown in console while linking is..

"
void std::_Rb_global<int>::_Rebalance(std::_Rb_tree_node_base*,std::_Rb_tree_node_base*&) /path/loc/file_header_type.o
ld: fatal: Symbol referencing errors. No output written to fgs_bin/binaryName
Error status returned = 1
"
# 5  
Old 04-19-2011
Tools

After using the option, -D_STLP_EXPOSE_GLOBALS_IMPLEMENTATION the above issue got resolved. This option i got it by seeing the source code of STLport..It is not mentioned in the STLport configuration manual
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to obtain list of object files in a shared (dynamic) library?

How can I simply obtain a list of the object files in a shared (dynamic) library. I am looking for the equivalent of "ar -t <lib>" for archived (static) libraries. Thanks in advance. :rolleyes: ---------- Post updated at 01:47 PM ---------- Previous update was at 12:16 PM ---------- The... (1 Reply)
Discussion started by: chatieremerrill
1 Replies

2. UNIX for Dummies Questions & Answers

Use variable in object library (ar)

I am trying to use a library, lets say libexample.a, and I want to use a variable within the object files that were archived. For example, my new code (which is linked to the library, don't worry about that) wants to access an integer from the original source. When I use the nm command on... (2 Replies)
Discussion started by: justinpark01
2 Replies

3. HP-UX

how could find HP UX application develop library

if I would like to develop application on HP UX ,where can I serarch the library and API ,like develop windows application with MSDN thanks (1 Reply)
Discussion started by: alert0919
1 Replies

4. Programming

Finding Symbol in the Library.

Whats the unix command to identify the symbols in the shared library. I want to find the symbol "nnftboot" is in the library libnnz10.so. Can any one help on this. (1 Reply)
Discussion started by: senthil_is
1 Replies

5. AIX

Shared Object library problem

Hi, When using shared objects on AIX 4.3 i am getting runtime problems. I have a small sample program which links to a shared object libray, oracle and system related libraries. At runtime it fails (gives segmentation fault and coredump ) in one proc file when executing login statement. But... (0 Replies)
Discussion started by: suman_jakkula
0 Replies

6. Programming

shared object "undefined symbol: fstat" error

Didn't have this problem in AIX, but ported to Linux with GCC compiler and am now getting a runtime error: tssutil: symbol lookup error: /work/agility/devel/bin/libagam.so: undefined symbol: fstat I'm sure most of you know that fstat is an intrinsic function just like printf, memcpy, etc. When I... (5 Replies)
Discussion started by: marcus121
5 Replies

7. Programming

How To Find Unresolved symbol in shared library?

1 . I use Digital Unix V4.0F 2 . I compile a programe which use a shared library . But when I run it( prog.out) , the shell told me that "Fatal Error : /sbin/loader : unresolved symbol in lib3cZap.so" But When I compile proj.out and lib3cZap.so , the compiler said nothing . And I ls -l... (1 Reply)
Discussion started by: chenhao_no1
1 Replies
Login or Register to Ask a Question