public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* C linkage when using C++
@ 2001-12-03  9:48 Altenau, Maureen D CECOM RDEC C2D
  2001-12-03 12:05 ` Joe Buck
  0 siblings, 1 reply; 3+ messages in thread
From: Altenau, Maureen D CECOM RDEC C2D @ 2001-12-03  9:48 UTC (permalink / raw)
  To: 'gcc@gcc.gnu.org'

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
               

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <EF40D5BF9C48D411AA8E0008C7913EFB53F37A@mail15.monmouth.army.mil>]

end of thread, other threads:[~2001-12-07  0:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-03  9:48 C linkage when using C++ Altenau, Maureen D CECOM RDEC C2D
2001-12-03 12:05 ` Joe Buck
     [not found] <EF40D5BF9C48D411AA8E0008C7913EFB53F37A@mail15.monmouth.army.mil>
2001-12-06 16:47 ` Joe Buck

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).