Just realized that has nothing to do with the environment variables but with some update in codeblocks, so it just should work without doing anything for the core examples.
For the addons examples, you should edit the cbp project file and add the following line at the end of the linker section:
I’ve just upgraded to Ubuntu 8.10 and I’m using Codeblocks 8.02 straight from the repos and it seems that running apps from within Codeblocks is broken for me at the moment. I’ve tried all of the above tricks and nothing seems to work…LD_LIBRARY_PATH is simply not being set with I run the app internally.
Anyone else have this problem? Do I need to get a version from svn?
I think this only works for the last versions in the svn, it began working some months ago with an update from the svn repositories. You can use the install_codeblocks script in the scripts folder to install the last svn version.
valgrind is a memory check program it tells you if your application has any memory leaks and where, the xml should be shown in a panel inside codeblocks. showing the lines and the kind of errors your app has