From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17350 invoked by alias); 3 Dec 2001 17:48:06 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 17262 invoked from network); 3 Dec 2001 17:48:04 -0000 Received: from unknown (HELO cecom6.monmouth.army.mil) (134.80.0.9) by sources.redhat.com with SMTP; 3 Dec 2001 17:48:04 -0000 Received: from [134.80.0.139] (mailsw2.monmouth.army.mil [134.80.0.139]) by cecom6.monmouth.army.mil (8.9.3/8.9.3) with ESMTP id MAA16920 for ; Mon, 3 Dec 2001 12:48:03 -0500 (EST) X-IMPORTANT-Address-Change: All doim6 addresses have changed to mail1. Example: mailbox@doim6.monmouth.army.mil is now mailbox@mail1.monmouth.army.mil Received: from swgm6.monmouth.army.mil (unverified) by (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Mon, 3 Dec 2001 12:48:03 -0500 Received: by swgm6.monmouth.army.mil with Internet Mail Service (5.5.2653.19) id ; Mon, 3 Dec 2001 12:47:16 -0500 Message-ID: From: "Altenau, Maureen D CECOM RDEC C2D" To: "'gcc@gcc.gnu.org'" Subject: C linkage when using C++ Date: Mon, 03 Dec 2001 09:48:00 -0000 X-Mailer: Internet Mail Service (5.5.2653.19) X-SW-Source: 2001-12/txt/msg00062.txt.bz2 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