Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: vikash on August 26, 2011, 06:21:34 pm

Title: How to use valgrind in code::blocks?
Post by: vikash on August 26, 2011, 06:21:34 pm
Some day ago with the help of some people in this forum i install codeblocks 10.05 on my ubuntu (off-line).
there were several extra plug ins i found, with respect to plug ins installed in case of software center installation. One of such plug in valgrind 1.0. I found it in tool bar. there were two options (1) run valgrind mem::check and run valgrind::cachegrind.
both of these are giving error as shown in attachments.what is reason for those errors & How to use valgrind to check memory leaks.
 I also show my very simple code with them. To confirm valgrind is installed i show third screen shot.

[attachment deleted by admin]
Title: Re: How to use valgrind in code::blocks?
Post by: Jenna on August 27, 2011, 12:00:30 am
To confirm valgrind is installed i show third screen shot.

This shows, that the valgrind-plugin is installed (you show a screenshot of C::B's plugin manger).
The valgrind executable has to be installed seperately.

If you are online, just use
Code
sudo apt-get install valgrind
if you are offline, you have to download valgrind and its dependencies manually.