public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Can .lib files be converted to .a files?
@ 2003-09-17 13:54  craig  grossbach
  2003-09-17 14:12 ` Ronald Landheer-Cieslak
  0 siblings, 1 reply; 4+ messages in thread
From:  craig  grossbach @ 2003-09-17 13:54 UTC (permalink / raw)
  To: cygwin

Does someone know of a way to convert a .lib file to it's 
.a counterpart? I need to get pcscal32.lib to be 
libpcscal32.a. Thank you.

--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can .lib files be converted to .a files?
  2003-09-17 13:54 Can .lib files be converted to .a files?  craig  grossbach
@ 2003-09-17 14:12 ` Ronald Landheer-Cieslak
  2003-09-17 14:18   ` Larry Hall
  0 siblings, 1 reply; 4+ messages in thread
From: Ronald Landheer-Cieslak @ 2003-09-17 14:12 UTC (permalink / raw)
  To: cygwin

On Wed, Sep 17, 2003 at 09:45:06AM -0400,  craig  grossbach wrote:
> Does someone know of a way to convert a .lib file to it's 
> .a counterpart? I need to get pcscal32.lib to be 
> libpcscal32.a. Thank you.
If pcscal32.lib was written in C and compiled by MSVC, just rename it.

If it was not written in C, you're out of luck: there are ABI differences
that you won't be able to get around without recompiling.

If it was not compiled by MSVC (or something compatible), you'll have to use
whatever your compiler offers to convert it - if anything. Otherwise, 
recompiling is the only thing you can do.

HTH

rlc

-- 
Today's weirdness is tomorrow's reason why.
		-- Hunter S. Thompson

--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can .lib files be converted to .a files?
  2003-09-17 14:12 ` Ronald Landheer-Cieslak
@ 2003-09-17 14:18   ` Larry Hall
  2003-09-17 14:27     ` Ronald Landheer-Cieslak
  0 siblings, 1 reply; 4+ messages in thread
From: Larry Hall @ 2003-09-17 14:18 UTC (permalink / raw)
  To: cygwin, cygwin

At 10:24 AM 9/17/2003, Ronald Landheer-Cieslak you wrote:
>On Wed, Sep 17, 2003 at 09:45:06AM -0400,  craig  grossbach wrote:
>> Does someone know of a way to convert a .lib file to it's 
>> .a counterpart? I need to get pcscal32.lib to be 
>> libpcscal32.a. Thank you.
>If pcscal32.lib was written in C and compiled by MSVC, just rename it.


Or just use the library directly by listing it on the link line explicitly
vs the -lpcscal32 syntax for gcc libraries.


>If it was not written in C, you're out of luck: there are ABI differences
>that you won't be able to get around without recompiling.
>
>If it was not compiled by MSVC (or something compatible), you'll have to use
>whatever your compiler offers to convert it - if anything. Otherwise, 
>recompiling is the only thing you can do.
>
>HTH
>
>rlc
>
>-- 
>Today's weirdness is tomorrow's reason why.
>        -- Hunter S. Thompson
>
>--
>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/

--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can .lib files be converted to .a files?
  2003-09-17 14:18   ` Larry Hall
@ 2003-09-17 14:27     ` Ronald Landheer-Cieslak
  0 siblings, 0 replies; 4+ messages in thread
From: Ronald Landheer-Cieslak @ 2003-09-17 14:27 UTC (permalink / raw)
  To: cygwin

On Wed, Sep 17, 2003 at 10:06:38AM -0400, Larry Hall wrote:
> At 10:24 AM 9/17/2003, Ronald Landheer-Cieslak you wrote:
> >On Wed, Sep 17, 2003 at 09:45:06AM -0400,  craig  grossbach wrote:
> >> Does someone know of a way to convert a .lib file to it's 
> >> .a counterpart? I need to get pcscal32.lib to be 
> >> libpcscal32.a. Thank you.
> >If pcscal32.lib was written in C and compiled by MSVC, just rename it.
> Or just use the library directly by listing it on the link line explicitly
> vs the -lpcscal32 syntax for gcc libraries.
I always forget about that option :)

rlc

-- 
we:
	The single most important word in the world.

--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-09-17 14:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-17 13:54 Can .lib files be converted to .a files?  craig  grossbach
2003-09-17 14:12 ` Ronald Landheer-Cieslak
2003-09-17 14:18   ` Larry Hall
2003-09-17 14:27     ` Ronald Landheer-Cieslak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).