C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-19-2009, 07:49 AM   #1
Registered User
 
Jace's Avatar
 
Join Date: May 2009
Posts: 8
Visual Studio 8 IDE: intellisense (?) says 'symbol undefined'?

When I right-click on some function or class name in my source code, and choose 'Go To Definition', lately I'm getting "Symbol 'FooBar' not defined' more and more often.

Is there some way I can get it to update or reparse my code? (This feature is part of VS8's intellisense, right?)
Jace is offline   Reply With Quote
Old 06-19-2009, 11:14 AM   #2
Registered User
 
Join Date: Dec 2007
Posts: 146
Have you already tried deleting the .ncb file and reloading the project?
DaveH is offline   Reply With Quote
Old 06-23-2009, 08:44 AM   #3
Registered User
 
Jace's Avatar
 
Join Date: May 2009
Posts: 8
Hmm no, I tried that, as well as other temporary files (.suo, .user), closing & reloading my project, but it still doesn't find certain labels (which are certainly there).

Is IntelliSense supposed to rescan automatically? Or does this take a while before that happens in the background or something?
Jace is offline   Reply With Quote
Old 06-23-2009, 01:56 PM   #4
Hat seller extraordinaire
 
Join Date: Apr 2008
Posts: 159
Intellisense is rather prone to malfunctioning, it's just the way it is. Your choices are to suck it up, or shell out for something like Visual Assist X. Apparently it's meant to be better in VS2010, but I haven't tried it.
adeyblue is offline   Reply With Quote
Old 06-23-2009, 03:00 PM   #5
Mysterious C++ User
 
Join Date: Oct 2007
Posts: 14,099
VS10 Beta is poor, slow and unreliable. I wouldn't recommend it now.
We'll see how IntelliSense turns out in the final version, but don't bet on it being bug-free.
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 06-23-2009, 04:29 PM   #6
Super Moderator
 
Bubba's Avatar
 
Join Date: Aug 2001
Posts: 7,470
If you delete the NCB, as has been said, it should rebuild the entire database. I have found that in both 2003, and 2005 IntelliSense is very bad at using outdated headers thus giving you incorrect prototypes.

You may also want to delete the PDBs for your project. I've heard that 2008 has a big problem with the PDBs.
__________________
If you aim at everything you will hit something but you won't know what it is.
Bubba is offline   Reply With Quote
Old 06-24-2009, 02:46 AM   #7
Mysterious C++ User
 
Join Date: Oct 2007
Posts: 14,099
I haven't had that many problems with the PDB files. But perhaps it is because my projects have been too small scale (using VS2008).
NCB files, OTOH, is a big problem and IntelliSense just plain lacking.
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Reply

Tags
intellisense, symbol, visual studio

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
In over my head Shelnutt2 C Programming 1 07-08-2008 06:54 PM
visual studio IDE w/ different compiler tooKool4School6 C++ Programming 15 06-06-2006 01:41 PM
pointer to array of objects of struct undisputed007 C++ Programming 12 03-02-2004 04:49 AM
Linking error DockyD C++ Programming 10 01-20-2003 05:27 AM
whats wrong with this Unregistered C++ Programming 1 02-07-2002 03:40 PM


All times are GMT -6. The time now is 06:08 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22