public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Is g++ sensitive to its name?
@ 2003-09-23 22:15 lrtaylor
  0 siblings, 0 replies; only message in thread
From: lrtaylor @ 2003-09-23 22:15 UTC (permalink / raw)
  To: gcc-help

Hi,

We're seeing an odd problem with an install of GCC 3.3.1 here, and it's making us wonder if g++ is sensitive at all to the name used to invoke it - that is, if it's behavior changes any depending on what name was used to invoke it.  We have it installed using special name prefixes that allow us to have builds of the compiler for different versions of Solaris installed in the same directory.  For example g++ is fully qualified as "sparc-sun-solaris2.7-g++" for Solaris 7, and we have similar ones for Solaris 2.6 and 8.  In addition, we have them hard linked to simpler names.  In this case, there is a hard link to it named g++.5.7-3.3.1.

So, the problem we're seeing is that g++ is invoked via the link (g++.5.7-3.3.1), it compiles C code using cc1 rather than cc1plus.  However, when we invoke it using sparc-sun-solaris2.7-g++, it uses cc1plus (which is what we would expect).  In addition, even when using cc1, it still defines all the preprocessor macros that normally get defined for C++ code.

Has anyone seen anything like this before?  Any ideas as to what might actually be going on or where to look to resolve this?

Thanks,
Lyle Taylor

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-23 22:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-23 22:15 Is g++ sensitive to its name? lrtaylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).