The following problems when writing a Makefile lately,
A library liba. So libb. So the libc. So in my project directory, such as/home/wb/code/project/lib
Liba. So dependent on libb. So and libc. So
Personal code only liba. So the code in my Makefile to specify the - Wl - rpath=/home/wb/code/project/lib - la
So there is no question of compilation, but running will be prompted to find libb. So...
LDD with go to the executable file, executable files can also be found in the lib list does need libb. So and libc. So, but behind that can't find the library files
I also use - Wl - rpath=/home/wb/code/project/lib - lb - lc to try At the same time use the -l specifies the file location, but the error
Please have a great god can solve,
Now I have to put the libb. So the libc. So copy to the system directory for subsequent development,
CodePudding user response:
Dynamic link library is to be followed to run the program, and can't find library generates static directly connected to compile the results