I have a shared library that I wish to link an executable against using GCC. The shared library has a nonstandard name not of the form libNAME.so, so I can not use the usual
If you are on Unix or Linux I think you can create a symbolic link to the library in the directory you want the library. For example: ln -s build/bin/_mylib.so build/bin/lib_mylib.so You could then use -l_mylib http://en.wikipedia.org/wiki/Symbolic_link
ln -s build/bin/_mylib.so build/bin/lib_mylib.so
-l_mylib