Author Topic: How to use valgrind in code::blocks?  (Read 10378 times)

Offline vikash

  • Multiple posting newcomer
  • *
  • Posts: 23
How to use valgrind in code::blocks?
« 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]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: How to use valgrind in code::blocks?
« Reply #1 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.