IntelliSense won't find some functions


D

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.

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
 
Ad

Advertisements

D

David Lowndes

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
 
D

Dave Cullen

They are visible in the Solution Explorer window, so yes.

Dave
 
D

David Lowndes

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
 
Ad

Advertisements

Joined
Aug 25, 2010
Messages
1
Reaction score
0
Hi Dave,

I too getting these type of un-intellisense issue, where both "go to definition" and "go to declaration" always bring me to the function declaration in header file.

Have you found a solution to the issue yet?

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top