hi, all
I got the "no symbol 'xxx' in current context"
message when I am using
DDD to debug a very simple c++ program. Following is the
trouble code.
Test::Test(){
int n = 100; //breakpoint
for (int i = 0; i < 3; i++) //breakpoint
std::cout<<i<<std::endl; //breakpoint
}
int main(){
Test test;
int n = 10;//ok to print n
for (int i = 0; i < 3; i++)//ok to print i
std::cout<<i<<std::endl;//ok to print i
return 1;
}
When I run into the breakpoints and try to print the n or i
in DDD, I
got the no symbol message. The global variables are fine.
Here are the versions of the software I am using
GNU DDD 3.3.11 (i486-pc-linux-gnu)
GNU gdb 6.6-debian
cmake version 2.4-patch 6, using "-ggdb -W -Wall
-O0" in CMakeLists.txt
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
OS Kubuntu 7.0.4, kernel 2.6.20-16-generic
Is that a known bug for any of the software I am using
listed above?
Thanks for help.
|