This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Is it possible to convert a ".so" file to a ".a" file?


Paul,

I'm not sure if (or how) one might convert a .so to a .a file. You'll get other answers (I'm not one of the list experts that's for sure ;-)

But if I understand you correctly, you were given ".so" binary files. You won't be able to just take compiled Linux code and run it in Cygwin: Cygwin is not UNIX.. Cygwin is a UNIX-like wrapper around Windows. Cygwin is not an emulator for Linux binaries.

Or maybe I misunderstood.

If you have Linux binaries you want to use on a Windows PC, you can *try* re-compiling that code under Cygwin. Assuming a few things, UNIX code generally compiles under Cygwin and gives you a Windows binary.

The other thing you can try is Linux emulation under Windows. I don't know if this is the best solution for you but it will give you a true Linux sandbox to play in. If you want an emulator samdbox, try Plex86 (formerly FreeMWare):
http://savannah.nongnu.org/projects/plex86

Plex86 is a work-in-progress and I have not tried it. It is FREE and may be what you want.

Another choice is FreeMWare, which is not free and not cheap. I happen to like VMware (and have not had time to try plex86 so I don't know how the two compare).

Hope this helps,
Scott



> -----Original Message-----
> From: Paul Strugnell [mailto:strugnp1@cs.man.ac.uk]
> Sent: Sunday, October 27, 2002 9:33 AM
> To: cygwin@cygwin.com
> Subject: Is it possible to convert a ".so" file to a ".a" file?
> 
> 
> Hi
> 
> I am trying to work on a University lab exercise from home, 
> and because my
> computer doesn't have Linux I am using Cygwin.  The library 
> files I have
> been given are of the ".so" format, which I can't use in 
> Windows.  Can I
> convert them to ".a" files?  Is there any way at all to do this?
> 
> I am currently using the following command line:
> gcc -I/cygdrive/c/labs/CS2021/lab1/incl 
> -L/cygdrive/c/labs/CS2021/lab1/lib -
> lm -lmbrot mandelbrot.c -o m.exe
> (where mbrot refers to the shared object file "libmbrot.so" 
> in the ...../lib
> folder)
> 
> Thanks
> Paul
> 
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]