摘要:
get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES) foreach(dir ${dirs}) message(STATUS "dir='${dir}'") endforeach() 阅读全文
摘要:
解压: tar -zxf PythonXX.tgz 安装依赖: yum install libffi-devel configure mkdir build cd build ../configure --enable-optimizations --prefix=`pwd`/install --w 阅读全文
摘要:
生成私钥 openssl genrsa -out server.key 2048 通过私钥生成 crt server_host 是访问的地址 stdpain.cc openssl req -new -x509 -days 3650 \ -subj "/C=GB/L=China/O=grpc-serv 阅读全文
摘要:
如果依赖了第三方的lib,有可能导致valgrind疯狂打日志,非常难排查问题 我们可以使用: valgrind --suppressions=valgrind.conf --gen-suppressions=all --leak-check=full --show-leak-kinds=defin 阅读全文
摘要:
dmesg 看出错的位置 然后再用 addr2line -e $bin $addr ref: https://blog.csdn.net/lhf_tiger/article/details/9088609 ref2: 一些segment fault定位方法 https://blog.csdn.net 阅读全文
摘要:
nm -c $lib.a nm $exec nm $lib.a nm -D $lib.so 阅读全文
摘要:
tcmalloc 开启的时候由于是先从OS中获取一块内存,因此越界或double free的时候不会立刻core 阅读全文
摘要:
https://isocpp.org/blog/2012/11/universal-references-in-c11-scott-meyers 阅读全文
摘要:
可以有效的减小bin的体积 实测从 180M 减小到 11M ref http://www.mingw.org/wiki/Large_executables 或者在gcc中加入 -s 阅读全文