dlopen and unresolved symbols
807578Nov 22 2001 — edited Nov 23 2001Hi forum,
I have some .so files, some of them made by me(i.e., I have source files and Makefiles), some of them third party(i.e., I only have the .so file).
I'm trying to create an executable that is able to distinguish which ones are mine and which ones are not. In all my .so libraries I put a function called '_version'.
The problem comes here. When I try to load any of those third party .so, I get this error:
'ld.so.1: home/uf766857/projects/buscaversions/principal/output/versions:
fatal: relocation error: file <file_name.so>: symbol <symbol_name>: referenced symbol not found'
I'm using RTLD_LAZY mode. Is this not enough in order to avoid undefined symbol errors? I only want to check the presence of the '_version' function.
Could anyone help me? (I really need it)
TIA
David.