public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Joe Buck <jbuck@synopsys.COM>
To: Maureen.Altenau@mail1.monmouth.army.mil (Altenau,
	Maureen D CECOM RDEC C2D)
Cc: gcc@gcc.gnu.org ('gcc@gcc.gnu.org')
Subject: Re: C linkage when using C++
Date: Mon, 03 Dec 2001 12:05:00 -0000	[thread overview]
Message-ID: <200112032005.MAA03289@atrus.synopsys.com> (raw)
In-Reply-To: <EF40D5BF9C48D411AA8E0008C7913EFB53F378@mail15.monmouth.army.mil> from "Altenau, Maureen D CECOM RDEC C2D" at Dec 03, 2001 12:47:10 PM


> I have downloaded gcc 3.0.2 from the Sun Freeware site.  I unzipped it and
> then used pkgadd to install it on a Sparc 2.5.1 system.  It seems that the
> installation went well.  I am trying to compile code that has templates and
> global functions that override the operator+ function.   With respect to the
> templates error, I get "Templates with C Linkage" and with respect to the
> operator+ functions I get an error that states that they "Conflict" with
> each other.  I do not have any extern "C" statements in my code.  Should I
> be setting a compiler switch that tells g++ that it is compiling C++?  Are
> there compiler directives that need to be defined?  Has anyone had a problem
> with this.  Any help would be greatly appreciated.

It's hard to make much sense of this without seeing code, or at least the
actual error messages rather than a paraphrase.  If you could
send a complete program that shows this failure it will be much easier to
track down the problem.

  reply	other threads:[~2001-12-03 20:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-03  9:48 Altenau, Maureen D CECOM RDEC C2D
2001-12-03 12:05 ` Joe Buck [this message]
     [not found] <EF40D5BF9C48D411AA8E0008C7913EFB53F37A@mail15.monmouth.army.mil>
2001-12-06 16:47 ` Joe Buck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200112032005.MAA03289@atrus.synopsys.com \
    --to=jbuck@synopsys.com \
    --cc=Maureen.Altenau@mail1.monmouth.army.mil \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).