Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Valgrind plugin
DrPatrock:
Hello,
I'm using Codeblocks together with CMake (Unix Makefile Generator). With these external Makefiles there are no compiler options per target. In the Makefiles i have the -g option enabled but when i try to start valgrind, it complains about the missing -g option... Is there a workaround for this problem ?? Where does valgrind look for this option ?
THX & Greets
Patrock
killerbot:
It looks at the codeblocks project, at the actual target (.cbp file). It doesn't work with external makefiles.
Jenna:
There is a workaround:
uncheck the "This is a custom makefile" check-box in the projects properties,
close the properties dialog (don't use the build-options button at the bottom),
open the build-options,
check the "Produce debugging symbols" checkbox in the "compiler flags" tab,
switch back to the properties,
check "This is a custom makefile" again.
Works for me here.
DrPatrock:
thanks Jens...
It's working for me too now...
Dikei:
--- Quote ---valgrind --version
valgrind-3.5.0-Debian
valgrind --leak-check=yes --xml=yes "bin/Debug/Bai4"
==8013== --xml=yes has been specified, but there is no XML output
==8013== destination. You must specify an XML output destination
==8013== using --xml-fd=, --xml-file= or --xml=socket=.
valgrind: Bad option '--xml=yes, but no XML destination specified'; aborting.
valgrind: Use --help for more information.
--- End quote ---
The Valgrind plugin keeps failing with the error message above.
I'm using codeblock svn 5911 on Ubuntu 9.10
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version