Nov 23

搜索当前目录下所有含字符串“”的文件

find . -type f -exec grep "string" {} \; -print

搜索当前目录下所有含字符串“”的.c文件

find . -type f -regex ".*\.c " -exec grep "string " {} \; -print

Nov 22

/usr/bin/ld : can not find -lpnp_basictools

系统找不到 -lxxx 工具或是库,解决方法是,重新安装同名工具或库,让系统找到它。

windows下可能是libxxx.dll,下载文件,放入PATH的路径中。

linux 下是libxxx.a或是libxxx.so等,添加链接,如下例:

ln -s /opt/QtSDK/.../libpnp_basictools.a /usr/lib