Post by Larry HallPost by Igor PechtchanskiPost by Alireza GhasemiHello,
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...
Ditto.
Post by Larry HallPost by Igor PechtchanskiPost by Alireza GhasemiIf 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... :-)
Post by Larry HallUsing 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/
|\ _,,,---,,_ ***@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ ***@watson.ibm.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