delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/26/00:47:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Thu, 26 May 2005 00:47:23 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
cc: Alireza Ghasemi <ali DOT foolad AT gmail DOT com>
Subject: Re: .a to .lib converting
In-Reply-To: <6.2.1.2.0.20050525211518.03cba708@pop.prospeed.net>
Message-ID: <Pine.GSO.4.61.0505260042380.8541@slinky.cs.nyu.edu>
References: <000601c56114$340b1970$812fb5d5 AT keloasc60pobkb> <Pine DOT GSO DOT 4 DOT 61 DOT 0505250914360 DOT 8541 AT slinky DOT cs DOT nyu DOT edu> <6 DOT 2 DOT 1 DOT 2 DOT 0 DOT 20050525211518 DOT 03cba708 AT pop DOT prospeed DOT net>
MIME-Version: 1.0

On Wed, 25 May 2005, Larry Hall wrote:

> At 09:21 AM 5/25/2005, you wrote:
> >On Wed, 25 May 2005, Alireza Ghasemi wrote:
> >
> >> Hello,
> >> I want to use some cygwin .a libraries with other environments(like
> >> VC++) as static .lib files.is this possible?
> >
> >Yes.
>
> Or no. ;-)

Eh?  Your response below points to a "yes", AFAICS...

> >> Can I convert .a files to windows static libraries?
> >
> >Yes.
>
> Or no. ;-)

Ditto.

> >> If possible,what program do I need?
> >
> >This was discussed before, though I'm not sure what the correct search
> >terms would be.  I believe you can simply use "mv libblah.a
> >libblah.lib". <http://cygwin.com/faq/faq_3.html#SEC103> might help,
> >too.
> >    Igor
>
> Actually, this is the answer to the opposite question.  The answer to
> that is as the FAQ states.

Umm, right.  That's why I said "might help" rather than point the OP
directly to it... :-)

> Using Cygwin .a's with VC++ isn't as easy, since they are going to pull
> in 'cygwin1.dll' and this cannot currently be initialized properly by
> non-cygwin programs.  Of course, this subject has also be discussed in
> the email archives.  If interested, Alastair Growcott suggested a
> "workaround".  If you're interested in it, see
> <http://sources.redhat.com/ml/cygwin/2004-06/msg00274.html>.

Ah, yes, this is exactly the message I was thinking of (though I didn't
recall it being this complicated).  Thanks for including a pointer to it.
BTW, we're talking about linking C here, not C++.  The name mangling
differences will make C++ linking much more painful, IIUC.

FWIW, someone else has mentioned working on the DLL initialization code
quite recently -- he might benefit from this pointer as well.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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