User forums > Help
"Find Declaration" or "open file.h" Question
(1/1)
Oulaxer11:
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 -
JGM:
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
Oulaxer11:
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?
Oulaxer11:
Insight? Anyone? Bueler?
szurilo:
Same problem here.
Szurilo
Navigation
[0] Message Index
Go to full version