Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Debuging problem: symbol not found...

Posted on 1999-06-28
3
Medium Priority
?
2,204 Views
Last Modified: 2012-08-13
Hello,

I've got some troubles with the Visual C++ 4.0 debuger:
When I trace my program, the debuger has a strange behaviour:

For instance, in the following sample of code, when I put a breakpoint on the second line, it tells me in the Watch window: "CXX0017: Error: symbol "Bord" not found".

signed short Bord = 1;
double SomCoef    = 0;

I've tried these things: A "rebuild all", restarting my machine, trying to put "Bord" as a member of my class (in this case I can initialise it in the constructor but I can't update its value after !)

So, if anyone has already encountered this problem, can you help me ? Thanks !

                                             JP
0
Comment
Question by:wooper
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Expert Comment

by:KangaRoo
ID: 1198620
? How did you declare it as class member ?

Sometimes variables are 'invisible' to the debugger because of optimizations. The declaration of Bord might actually be executed later on.
0
 

Author Comment

by:wooper
ID: 1198621
Sometime, small things can reveal some great changes ...

Ok, that's fine, you're right !

I used to compile with the optimizaton options always activated. It seems to work now. Thanks !

0
 
LVL 7

Accepted Solution

by:
KangaRoo earned 400 total points
ID: 1198622
Glad I could help.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question