Discussion:
IntelliSense won't find some functions
(too old to reply)
Dave Cullen
2009-12-31 14:49:33 UTC
Permalink
Using VS 2005 C++ if I right click on a function name in the main code and
select "Go To Definition" it will take me to the header file declaration
instead of to the function in the cpp file. It behaves exactly as if I had
clicked "Go To Declaration". This only happens with functions in two of my
source files, the others work fine.

I've deleted the IntelliSense files and rebuilt the project to no avail. The
only common element I can think of is that when the project was first
created those cpp's were located in the project directory and I have since
moved them to a common source directory. AFAIK all references to the old
location should be gone.

While inside the cpp I can still get to functions via the pulldown list, but
from elsewhere in the project it always brings me to the header file.

Any ideas?

Thanks
drc
David Lowndes
2009-12-31 15:14:57 UTC
Permalink
Post by Dave Cullen
Using VS 2005 C++ if I right click on a function name in the main code and
select "Go To Definition" it will take me to the header file declaration
instead of to the function in the cpp file. It behaves exactly as if I had
clicked "Go To Declaration". This only happens with functions in two of my
source files, the others work fine.
Are those source files in the project files collection?

Dave
Dave Cullen
2009-12-31 15:58:17 UTC
Permalink
They are visible in the Solution Explorer window, so yes.

Dave
Post by David Lowndes
Post by Dave Cullen
Using VS 2005 C++ if I right click on a function name in the main code and
select "Go To Definition" it will take me to the header file declaration
instead of to the function in the cpp file. It behaves exactly as if I had
clicked "Go To Declaration". This only happens with functions in two of my
source files, the others work fine.
Are those source files in the project files collection?
Dave
David Lowndes
2010-01-01 10:36:54 UTC
Permalink
Post by Dave Cullen
They are visible in the Solution Explorer window, so yes.
I'm not sure what the issue is then. If you've already tried closing
the solution and deleting the ncb file, I'm out of suggestions.

Dave

Continue reading on narkive:
Loading...