用下面这条命令可以查看到 GNU C 开发包 libc6-dev 提供的动态链接库列表:
内容如下:
同理,可以用下列命令查看到 libc6-dev 提供的静态链接库文件:
静态链接库如下:
要学好编程,首先学会利用这所有的工具。
dpkg -L libc6-dev | grep "/lib" | grep ".so" |
/usr/lib/libc.so /usr/lib/libpthread.so /usr/lib/libanl.so /usr/lib/libBrokenLocale.so /usr/lib/libcidn.so /usr/lib/libcrypt.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libnsl.so /usr/lib/libnss_compat.so /usr/lib/libnss_dns.so /usr/lib/libnss_files.so /usr/lib/libnss_hesiod.so /usr/lib/libnss_nis.so /usr/lib/libnss_nisplus.so /usr/lib/libresolv.so /usr/lib/librt.so /usr/lib/libthread_db.so /usr/lib/libutil.so |
dpkg -L libc6-dev | grep "/lib" | grep ".a" |
/usr/lib/libanl.a /usr/lib/libBrokenLocale.a /usr/lib/libbsd-compat.a /usr/lib/libc.a /usr/lib/libc_nonshared.a /usr/lib/libcrypt.a /usr/lib/libdl.a /usr/lib/libg.a /usr/lib/libieee.a /usr/lib/libm.a /usr/lib/libmcheck.a /usr/lib/libnsl.a /usr/lib/libpthread.a /usr/lib/libpthread_nonshared.a /usr/lib/libresolv.a /usr/lib/librpcsvc.a /usr/lib/librt.a /usr/lib/libutil.a |