Dynamic Libs (path problem)
Hi.
Im learning dl_libs under Linux and i have been succsesfull in creating and loading them.
However, the program expects them to be in /lib, and I don't want manually copy them
everytime i recompile them! Ive tried:
#Creating a link (ln) in /lib to the lib and then it complains about "invalid cross-device link".
#Loading them from where they are ( sprintf(lib_path, "../root/dev/dl_lib2/lib%d.so", lib_num); ),
and then it sez it can't find them!
Any suggestions?
|