delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/27/16:00:56

From: Jay Qiu <qiuji AT cig DOT mot DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: GNU binutils 2.8.1: ar.exe
Date: Fri, 21 Nov 1997 14:22:13 -0600
Organization: Motorola Cellular Infrastructure Group
Lines: 34
Message-ID: <3475ED75.F3B@cig.mot.com>
NNTP-Posting-Host: tango.cig.mot.com
Mime-Version: 1.0
CC: qiuji AT cig DOT mot DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi, there,

I recently got a copy of 'ar.exe' from djgpp web page.  Unfortunately,
after I installed the "ar.exe" to my path (h:\bin) and run the 'ar'
command as "R:\cp>ar -rc cp.a main.o", it always give error message as

  h:\bin\ar.exe: cp.a: No such file or directory (ENOENT)

And it is strange that if I do "ar -?", it will return me with

  h:/bin/ar.exe: illegal option -- ?
  Usage: h:/bin/ar.exe [-]{dmpqrtx}[abcilosuvV] [member-name] 
	archive-file file...
  h:/bin/ar.exe -M [<mri-script]
  h:/bin/ar.exe: supported targets: coff-go32 coff-go32-exe a.out-i386
	srec symbolsrec tekhex binary ihex

notice that the Usage is "h:/bin/ar.exe", rather than just "ar" (?).

I have an earlier version of GNU utils (don't know the version) that
works well, but it doesn't have the 'ar' utility.

I compiled the C/C++ code from the command line (NT's DOS window) with
the Borland C++ compiler (v5.0) to generate the object files, and then
used the 'ar' utility to create a library archive file from those object
files.

Any help is greatly appreciated.



-- 
Jay Qiu
qiuji AT cig DOT mot DOT com

- Raw text -


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