www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/12/13/07:02:42

Date: Wed, 13 Dec 1995 08:08:07 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Juergen Erhard <jae AT Laden1 DOT sun DOT soe DOT clarkson DOT edu>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: *.cpp instead of *.cc

On Tue, 12 Dec 1995, Juergen Erhard wrote:

> I've got a problem with djgpp 1.12. It assumes (or gdb does) that
> the source files end in .cc, but mine all end in .cpp.
> 
> Now I don't want to change all my files (the names). How do I get
> gdb to take the filename that is?

It's a bug in gcc.  If you invoke it with -v, you will see that it calls
cc1plus with `-dumpbase file.cc' option (in your case, `file.cc' would be
replaced by the actual name of your source file).  Until this bug is
corrected in future versions of gcc, if renaming files is unacceptable for
you, you can call cc1plus yourself with the same command line gcc prints
given -v, but with `-dumpbase file.cpp' option instead.

- Raw text -


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