From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8070 invoked by alias); 15 Sep 2003 20:05:58 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 8062 invoked from network); 15 Sep 2003 20:05:58 -0000 Received: from unknown (HELO po4.wam.umd.edu) (128.8.10.166) by sources.redhat.com with SMTP; 15 Sep 2003 20:05:58 -0000 Received: from scoobydoo.student.umd.edu (scoobydoo.student.umd.edu [129.2.216.104]) by po4.wam.umd.edu (8.9.3p2/8.9.3) with ESMTP id QAA27566; Mon, 15 Sep 2003 16:05:47 -0400 (EDT) Subject: Re: Forcing gcc to compile c++ programs...? From: Justin Miller To: Eljay Love-Jensen Cc: gcc-help@gcc.gnu.org In-Reply-To: <5.2.1.1.0.20030915145709.00b86e80@iplan-mn.corp.adobe.com> References: <5.2.1.1.0.20030915145709.00b86e80@iplan-mn.corp.adobe.com> Content-Type: text/plain Organization: Message-Id: <1063656360.4760.6.camel@scoobydoo.student.umd.edu> Mime-Version: 1.0 Date: Mon, 15 Sep 2003 20:05:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg00180.txt.bz2 Ok, that seemed to allow it to compile, but not to link. These are just a sample of the errors I'm getting. Any clue?? Justin /tmp/ccBFO83w.o(.text+0x22): In function `main': : undefined reference to `std::allocator::allocator[in-charge]()' /tmp/ccBFO83w.o(.text+0x3d): In function `main': : undefined reference to `std::basic_string, std::allocator >::basic_string[in-charge](char const*, std::allocator const&)' /tmp/ccBFO83w.o(.text+0x5d): In function `main': : undefined reference to `std::allocator::~allocator [in-charge]()' On Mon, 2003-09-15 at 15:58, Eljay Love-Jensen wrote: > Hi Justin, > > For instance: > gcc -x c++ foo.whatever > > --Eljay > >