摘要: 1.在 /etc/ld.so.conf 文件中添加搜索路径,重启或者 ldconfig 生效;2.在 /etc/ld.so.conf.d 目录下添加 *.conf 文件,其中可以添加搜索路径,重启获取运行 ldconfig 生效;3.exportLD_LIBRARY_PATH=$new_path:$... 阅读全文
posted @ 2014-10-16 21:25 WendellYih 阅读(1776) 评论(0) 推荐(0) 编辑
摘要: RAII手法是 Resource Acquisition is Initialization 的缩写,意为“资源获取即初始化”,在使用智能指针时也使用,下面是针对互斥量时的实现, 1 #include 2 #include 3 4 using namespace std; 5 6 class... 阅读全文
posted @ 2014-10-16 11:55 WendellYih 阅读(1013) 评论(0) 推荐(0) 编辑