From owner-freebsd-questions@FreeBSD.ORG Sun Mar 27 08:36:50 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3E3A16A4CE for ; Sun, 27 Mar 2005 08:36:49 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3ACB243D2D for ; Sun, 27 Mar 2005 08:36:48 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b188.otenet.gr [212.205.244.196]) j2R8a4iM011815; Sun, 27 Mar 2005 11:36:05 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j2R8af0t009037; Sun, 27 Mar 2005 11:36:41 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j2R8aWh8009036; Sun, 27 Mar 2005 11:36:32 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 27 Mar 2005 11:36:32 +0300 From: Giorgos Keramidas To: Dick Hoogendijk Message-ID: <20050327083632.GA6105@gothmog.gr> References: <20050326152442.GA11610@pooh.nagual.st> <20050326230005.GB96971@xor.obsecurity.org> <20050327082121.GA9615@lothlorien.nagual.st> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050327082121.GA9615@lothlorien.nagual.st> cc: freebsd-questions Subject: Re: gcc error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2005 08:36:50 -0000 On 2005-03-27 10:21, Dick Hoogendijk wrote: >On 26 Mar Kris Kennaway wrote: >>On Sat, Mar 26, 2005 at 04:24:42PM +0100, Dick Hoogendijk wrote: >>> So, what is this and waht can be done about it? I guess it's a gcc >>> compiler error. I deleted all gcc packages that were installed (back >>> to the systems's version - FreeBSD-4.11R). It did not help. >>> >>> The error I get: >>> >>> "c++: cannot specify -o with -c or -S and multiple compilations" >>> The same error happens sometimes with 'cc' >> >> Show us the full error, not a context-free excerpt. > > Sure I want to do that. But I'm bit of an novice. How can I grep those > errors on screen to a file? Before you start building anything, run script(1): $ script Script started, output file is typescript $ gcc -o hello hello.c $ exit Script done, output file is typescript Then you will have a file called 'typescript' in the current working directory, which will contain everything you typed or saw on your terminal while you were within the 'scripted shell'. Edit this file and copy whatever parts seem useful :-) - Giorgos