$ gcc -print-file-name=libncursesw.so
/usr/lib/libncursesw.so

$ gcc -print-search-dirs | grep /usr

libraries: =…:/usr/lib/

This is not usually a problem (since the linker does most of the searching for libraries), but when programs call -print-file-name were in trouble.

Submitted on 1 January 2007 at 15:12

Log in to post comments