User forums > Using Code::Blocks

How to use valgrind in code::blocks?

(1/1)

vikash:
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]

Jenna:

--- Quote from: vikash on August 26, 2011, 06:21:34 pm ---To confirm valgrind is installed i show third screen shot.

--- End quote ---

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
--- End code ---
if you are offline, you have to download valgrind and its dependencies manually.

Navigation

[0] Message Index

Go to full version