When using the -l option, you do not specify the leading lib or trailing .a or .so portions of the name that they are assumed by the linker. You would like to use something like -leststring to raise it (assuming your path -l set correctly.
Alternatively, you can specify the exact file name (so no -l , just libeststring.a ) as part of the list of objects for the link (make sure the order is right for your .o files), but I believe that what you need will indicate the path, as the linker will not know to find your -l path. The easiest way is to use -l .
source share