From: "Altenau, Maureen D CECOM RDEC C2D" <Maureen.Altenau@mail1.monmouth.army.mil>
To: "'gcc@gcc.gnu.org'" <gcc@gcc.gnu.org>
Subject: C linkage when using C++
Date: Mon, 03 Dec 2001 09:48:00 -0000 [thread overview]
Message-ID: <EF40D5BF9C48D411AA8E0008C7913EFB53F378@mail15.monmouth.army.mil> (raw)
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.
Maureen Altenau
next reply other threads:[~2001-12-03 17:48 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 [this message]
2001-12-03 12:05 ` Joe Buck
[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=EF40D5BF9C48D411AA8E0008C7913EFB53F378@mail15.monmouth.army.mil \
--to=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).