Author Topic: "Find Declaration" or "open file.h" Question  (Read 6894 times)

Offline Oulaxer11

  • Multiple posting newcomer
  • *
  • Posts: 28
"Find Declaration" or "open file.h" Question
« 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 -

-Mike

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: "Find Declaration" or "open file.h" Question
« Reply #1 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

Offline Oulaxer11

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: "Find Declaration" or "open file.h" Question
« Reply #2 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?
-Mike

Offline Oulaxer11

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: "Find Declaration" or "open file.h" Question
« Reply #3 on: March 11, 2008, 03:51:03 pm »
Insight? Anyone? Bueler?
-Mike

Offline szurilo

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: "Find Declaration" or "open file.h" Question
« Reply #4 on: March 13, 2008, 03:29:49 pm »
Same problem here.

Szurilo