This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Re: Does 'ar' work with native MS Windows libs?
- From: "Williams, Gerald S \(Jerry\)" <gsw at agere dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 3 Oct 2006 15:48:55 -0400
- Subject: RE: Re: Does 'ar' work with native MS Windows libs?
Coatimundi wrote:
> If paths are included in the archive (which is typical for
> libs created by Visual Studio), then ar may in some cases
> claim that members (displayed with 'ar t') do not exist
> when doing "ar x lib.a {object}" either by path/name.obj
> or just name.obj.
I think you need to use the -P option:
$ ar t foobar.lib
release\foo.obj
release\bar.obj
$ ar xv foobar.lib 'release\foo.obj'
no entry release\foo.obj in archive
$ ar xvP foobar.lib 'release\foo.obj'
x - release\foo.obj
gsw
--
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/