If there is a correct installation in /usr/lib/ or /usr/local/lib/ there is never the need for a full path.
Your installation is wrong, or your header file is wrong. Check the libname in your header file/interface unit first, otherwise your installation is wrong or non-existent.