From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11329 invoked by alias); 3 Dec 2001 20:05:35 -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 11305 invoked from network); 3 Dec 2001 20:05:33 -0000 Received: from unknown (HELO kiruna.synopsys.com) (204.176.20.18) by sources.redhat.com with SMTP; 3 Dec 2001 20:05:33 -0000 Received: from maiden.synopsys.com (maiden.synopsys.com [146.225.100.170]) by kiruna.synopsys.com (Postfix) with ESMTP id 13D1AF3A0; Mon, 3 Dec 2001 12:05:33 -0800 (PST) Received: from atrus.synopsys.com (localhost [127.0.0.1]) by maiden.synopsys.com (8.9.1/8.9.1) with ESMTP id MAA27133; Mon, 3 Dec 2001 12:05:57 -0800 (PST) From: Joe Buck Received: (from jbuck@localhost) by atrus.synopsys.com (8.9.3+Sun/8.9.1) id MAA03289; Mon, 3 Dec 2001 12:05:31 -0800 (PST) Message-Id: <200112032005.MAA03289@atrus.synopsys.com> Subject: Re: C linkage when using C++ To: Maureen.Altenau@mail1.monmouth.army.mil (Altenau, Maureen D CECOM RDEC C2D) Date: Mon, 03 Dec 2001 12:05:00 -0000 Cc: gcc@gcc.gnu.org ('gcc@gcc.gnu.org') In-Reply-To: from "Altenau, Maureen D CECOM RDEC C2D" at Dec 03, 2001 12:47:10 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00073.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. 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.