Since I have the memory of a goldfish, this will basically used to catalog/archive things so that I can use it as a reference. Maybe someone might find it helpful. It will mostly revolve around tech/linux stuff.
Tuesday, February 24, 2009
Thursday, February 19, 2009
shared libraries g++
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>
<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>
Subscribe to:
Posts (Atom)