If I compile my source code with "-L". can find the dynamic library libmd5.so.
gcc main.c -g -O2 -Wall -o main -L. -lmd5 -lcr
But if I leave the โ-L.โ Option, the linker will not find the dynamic library. How can I change this without having to refer to "-L"?
(additional information libmd5.so and libmd5.so.1.0.1 are in / home / user / ba)
source
share