for the executable that will load the dlib, include the linker option '-rdynamic'
<lib_name.so> - shared library
<src> - source file
<src_obj> - object file of source
$(DEBUG_DIR)/<lib_name.so> : $(DEBUG_DIR)/<src_obj>
    g++ -shared -Wl,-soname,<lib_name.so> -o $(DEBUG_DIR)/<lib_name.so> $(DEBUG_DIR)/<src_obj> -lc
   
$(DEBUG_DIR)/<src_obj> :
   g++ -fPIC -g -c -Wall -I . -c src/<src> -o $(DEBUG_DIR)/<src_obj> 
 
 
No comments:
Post a Comment