User forums > Using Code::Blocks

Valgrind

(1/3) > >>

Satyajit:
I am using Code::Blocks 13.12 on my linux ubuntu machine. I also installed valgrind using terminal. When I open a program on codeblock it also gives me some options to use valgrind also. Options are-

   (i) Run MemCheck
  (ii) Open MemCheck Xml log file
 (iii) Run Cachegrind

  But nothing is happening using those options. So finally question is how to use those options?

Jenna:
Is there any output in the Valgrind-tab in "Logs and others" ?

Satyajit:
When I click on "Run MemCheck" Valgrind tab in "logs & others" shows



valgrind--version
valgrind-3.10.1
setting dynamic linker path to: .:
Executing command:valgrind--leak-check=full--track-origins=yes--xml=yes--xml-file=/home/..../.../.../code_name/valgrindOut.xml "/home/.../.../.../code_name/bin/Debug/code_name"

---------- Application output -----------

valgrind: C++: command not found

BlueHazzard:

--- Quote from: Satyajit on December 02, 2016, 12:46:04 pm ------ Application output -----------

valgrind: C++: command not found

--- End quote ---

Isn't it obvious that you have to install valgrind if the command is not found?

Jenna:

--- Quote from: BlueHazzard on December 02, 2016, 08:40:20 pm ---
--- Quote from: Satyajit on December 02, 2016, 12:46:04 pm ------ Application output -----------

valgrind: C++: command not found

--- End quote ---

Isn't it obvious that you have to install valgrind if the command is not found?

--- End quote ---
The previous post shows, that valgrind returns a version-number, so it seems to run.

It looks like it calls c++, which does not exist or is not in the path.
I don't see this behaviour on linux, even if I remove my c++-compiler, so this is only a guess.

Navigation

[0] Message Index

[#] Next page

Go to full version