How to I find the filename of a library via the library name?
问题 How to I find the filename of a library via the library name? In otherwords, when I use "-lc", I know it is /lib/libc.so.6 (or something similar.) I want to be able to type some command where "-lc" is the input and "/lib/libc.so.6" is the output. To extend this idea futher, I wanted to specify my own search path so I can use this library resolver for different toolchains... Any help would be awesome, Thanks Chenz 回答1: If you want to find out where a given GCC will find libc.a or libc.so, do