News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

"Find Declaration" or "open file.h" Question

Started by Oulaxer11, March 05, 2008, 03:36:24 PM

Previous topic - Next topic

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 -

-Mike

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?
-Mike

Oulaxer11

-Mike

szurilo