I downloaded a big codeblocks project, and when I click on the cdb, I am asked to set the paths for the glew library through the Global Variables Editor. I did such things tens of times by adding search directories in the project's build options, but never with variables before.
On my system (Ubuntu 12.04 + Codeblocks 10.05), glew.h is located in /usr/include/GL/, and its associated lib is in /usr/lib/i386-linux-gnu/
In the Global Variable Editor, there are different fields for the include and lib paths, but my problem comes from the mandatory "base" field. I tried to leave it empty, but it complained, so I tried to fill it with /usr/lib/i386-linux-gnu/ for example. The compiler passed, but the linker complains with:
/usr/bin/ld: fatal error: /usr/lib/i386-linux-gnu/: pread failed: Is a directory
I don't find a reference to that error message anywhere. How should I fill that base directory field, when the include and lib are in completely different locations like in my case? The problem definitly has to do with the base field because if I replace gnu by gnubbb in it, it shows up as such in the error message.