mkdir build
cd build
rm -rf * && cmake ..
make
生成gmessage
valgrind --leak-check=full ./gmessage
mkdir build
cd build
rm -rf * && cmake ..
make
生成gmessage
valgrind --leak-check=full ./gmessage
转载于:https://www.cnblogs.com/lgzdlmu1985/archive/2012/12/06/2805351.html