Code::Blocks Forums

User forums => Help => Topic started by: Oulaxer11 on March 05, 2008, 03:36:24 pm

Title: "Find Declaration" or "open file.h" Question
Post by: Oulaxer11 on March 05, 2008, 03:36:24 pm
Our projects are organized so that in many cases the header file (*.h) are stored in directories other than the directory where the c file (*.c) is located.  In this arrangement, the right click, "Find Declaration" or the right click "Open file.h" does not work, I am assuming because the scope of the search does not include the entire project... is there away around this?

Thanks -

Title: Re: "Find Declaration" or "open file.h" Question
Post by: JGM on March 05, 2008, 09:24:39 pm
something similar happens to me, it finds the declaration of the wrong file. For example with files named the same on different directories.

Example:

Headers
====================
include/student.h
include/dialogs/student.h

Sources
====================
src/student.cpp
src/dialogs/student.cpp -> Find Declaration, opens -> include/student.h
Title: Re: "Find Declaration" or "open file.h" Question
Post by: Oulaxer11 on March 07, 2008, 02:08:54 pm
I've had that happen too... I wonder how the search works... I wonder if I don't have the proper "paths" set.... and then in your case... it must not give higher priority to local copies of a file in a search like that... dunno... Elders?
Title: Re: "Find Declaration" or "open file.h" Question
Post by: Oulaxer11 on March 11, 2008, 03:51:03 pm
Insight? Anyone? Bueler?
Title: Re: "Find Declaration" or "open file.h" Question
Post by: szurilo on March 13, 2008, 03:29:49 pm
Same problem here.

Szurilo