Edward Pilatowicz wrote: > how do i link an application against a library with a non-standard name? > > for example, if i have a library called "foo_bar.so" i can't do: > cc foo.c -o foo -lfoo_bar >
Don't use the -l, it's just a conventional way of finding dependencies that follow a "libX.so" style. Use: cc foo.c -o foo ./foo_bar.so cc foo.c -o foo ../../../../eds-libs/foo_bar.so cc foo.c -o foo /opt/eds-libs/foo_bar.so The SONAME within the library will be the dependency name that is recorded in foo (see ld(1) -h). -- Rod