Mail Archives: djgpp/1998/03/24/03:06:00
Stian Danielsen wrote in message <35167ebc DOT 16325942 AT nntp-oslo DOT uninett DOT no>...
>>If you rename the files to .cc (and recompile) can you debug?
>Jepp! Now it worked! At last:)
>Strange it didn't work with the .cpp ending..?
Not really. There was a bug in pre-2.8 g++ where it would put foo.cc in the
object file regardless of the actual extension of the c++ file. So you have
a source file of foo.cpp, gxx compiles a .o files but tags it with foo.cc.
Now, when the debugger attempts to get line information for you it looks for
the wrong file. This is fixed in the latest gcc.
- Raw text -