C language in LinuxProgramThe biggest problem is that I don't have a good programming ide. Of course I want kdevelop and other tools to be quite powerful, but I am still used to using kdevelop tools. Because I don't have a habit of programming IDE, memory detection has become a major problem in programming in Linux.
Doesn't it mean that there is no memory check tool that can be used in Linux? It's not like valgrind. He is http://valgrind.org/downloads/current.html#current downloading a valgrind 3.2.3 (tar.bz2)
Tool. Follow the README prompts in the tool. After installation, you can use this tool to detect memory leaks and out-of-bounds memory. This is a memory detection tool without interface. After installation, enter
Valgrind LS-l verify whether the tool works properly (this is the method in README, actually it is to verify
-L command memory detection). If you see a pile of information, your tool can be used.
When compiling your program, set the-G parameter. After compilation, use the following command to determine whether your program has memory leakage:
Valgrind -- tool = memcheck -- leak-check = Full yourprog will see your memory problems in the output information. For more information about the meaning of these parameters, see the output information of valgrind -- help.