I can't seem to get that to work. Tried all sorts of stuff. Off the top of my head: -ll<thelibname> -ll<thelibname>.so "-L-l <thelibname>" "-L-l <thelibname>.so" -L-l -L<thelibname> -L-l -L<thelibname>.so None of them were able to find the file (and, yes, the name+path are right), and I'm not using any links.