delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/20/13:57:42

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: AR error
Date: Fri, 20 Oct 2006 18:57:24 +0100
Message-ID: <042401c6f471$32749220$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <20061020171906.GG988@ren.aechelon.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 20 October 2006 18:19, David L. Morgan wrote:


> 	I am running cygwin 1.5.21-1 on a Windows XP64 system, and am having
> a problem with AR on the system, where AR reports "File format not
> recognized" when I attempt to link what appears to be a valid object.  Here
> is an example: 

> $ make -n
> ar -ar -o /cygdrive/c/tree/dbc/lib/libendian.a  endian.o
> 
> $ make
> ar: endian.o: File format not recognized
> make: *** [/cygdrive/c/tree/dbc/lib/libendian.a] Error 1

> Any ideas?  I've tried several invocations of ar and I get the same result.

ar -cr -o /cygdrive/c/tree/dbc/lib/libendian.a  endian.o

works for me.  '-a' is a modifier, not a keyletter.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019