delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/24/03:06:00

From: "Andrew Crabtree" <andrewc AT rosemail DOT rose DOT hp DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Debugging
Date: Mon, 23 Mar 1998 13:48:51 -0800
Organization: Hewlett Packard
Lines: 11
Message-ID: <6f6lc4$mk8$1@rosenews.rose.hp.com>
References: <m0yH7sK-000S2xC AT inti DOT gov DOT ar> <35167ebc DOT 16325942 AT nntp-oslo DOT uninett DOT no>
NNTP-Posting-Host: ros51675cra.rose.hp.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019