Forgot to mention it in the previous email. I am on Ubuntu 8.10 using codeblocks version 5911, which is the latest version from Jens released for Ubuntu via the Ubuntu Update Manager.
Here is minimal test project that demonstrates the problem. It contains a main.cpp and a headerfile.
+++++++++++
#include "headerfile.h"
int main(int argc, char ** argv)
{
int testvar1 = SYMBOL1 ;
int testvar2 = SYMBOL2 ;
return 0 ;
}
// headerfile.h
enum
{
SYMBOL1 ,
SYMBOL2
} ;
+++++
1. first keep only main.cpp open, A file-search on SYMBOL1 then only shows the match in main.cpp. The defining occurrence in the headerfile does not show up.
2. keeping only the header file open shows only the match in the header file.
3. keeping both closed and then issuing the file search brings up the error message 'No files to search in!', which would make sense if only the open files are searched.
I have been using codeblocks for more than a year and I have only become aware of this problem relatively recently. I ought to have seen it before if it has been like this all the time, but maybe I didn't.
Would be useful if someone can try the two files above for a more recent nightly build (don't know how to build them).