What are some reasons I might be receiving this "Symbol not defined" error in Visual Studio 2005 (screenshot included)

BeachRunnerFred picture BeachRunnerFred · Dec 3, 2008 · Viewed 7.7k times · Source

When debugging my VS2005 project, I get the following error when I attempt to step into the function that returns the vScenarioDescriptions local variable it's struggling with...

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

As I continue to walk through the code and step into functions, it appears I'm getting this error other local variables as well. Any ideas?

Thanks in advance for your help!

Answer

Michael Burr picture Michael Burr · Dec 3, 2008

Is the module compiled with optimizations turned on?

If so, the vScenarioDescription may not actually not actually exist in memory. In VS2008 I don't get a messagebox error, the variable simply doesn't show up in the 'Locals' window, and if I try to watch it, the Watch windows says:

CXX0017: Error: symbol "name" not found

I don't have VS2005 installed anymore so I don't know if it pops up a messagebox like you're seeing or behaves like VS2008.