What are some of the reasons I can get this "Symbol not defined" error in Visual Studio 2005 (screenshot included)

While debugging my VS2005 project, I get the following error when I try to enter a function that returns the local vScenarioDescriptions variable it is struggling with ...

image no longer available http://people.ict.usc.edu/~crotchett/images/symbolnotdefined.JPG

As I continue to step through the code and step into functions, it looks like I am getting this error in other local variables as well. Any ideas?

Thanks in advance for your help!

+1


source to share


3 answers


Is the optimization module enabled?

If so, it vScenarioDescription

may not actually exist in memory. In VS2008, I don't get the error in the message, the variable just doesn't appear in the Locals window, and if I try to view it, the Clock windows say:



CXX0017: Error: character "name" not found

I don't have VS2005 anymore, so I don't know if this message pops up like you see or behave like VS2008.

+2


source


There may be several off the top of my head:



  • Symbol information may be corrupted. Try doing a clean rebuild of the whole solution.
  • If there are multiple projects in the solution, check the Configuration Manager (build menu) if they are all in the Debug setting. Let's say some DLLs or some components might be in release mode that doesn't contain any debugging information.
  • If you are using some third party libraries (DLLs), they may not have debugging information at all.
+1


source


It might be a namespace issue. Try adding namespace::

before your symbol in the debugger viewport if the symbols you are trying to look at are inside a namespace.

0


source







All Articles