Thread: Visual Studio 8 IDE: intellisense (?) says 'symbol undefined'?

  1. #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?)

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    214
    Have you already tried deleting the .ncb file and reloading the project?

  3. #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?

  4. #4
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    639
    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.

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    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.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #6
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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.

  7. #7
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    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.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

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

Tags for this Thread