From: Christopher F. <cg...@re...> - 2002-01-17 02:36:35
|
On Thu, Jan 17, 2002 at 01:03:58AM +0000, Jos? Fonseca wrote: >On 2002.01.17 00:28 Christopher Faylor wrote: >>On Wed, Jan 16, 2002 at 04:07:21PM -0800, Paul Garceau wrote: >>>----- Original Message ----- >>>From: Jos? Fonseca <j_r...@ya...> >>>Date: Wednesday, January 16, 2002 2:48 pm >>>Subject: Re: [Mingw-users] Help to transfer programs of cygwin >>> >>>> On 2002.01.16 19:52 Jianguo Wang wrote: >>>> > I ahve a program which is complied well under cygwin. And it seems the >>>> > executable file is using some cygwin dll. How can I make the program >>>> > compilable under GNU mingw32? And also executed without the need of >>>> > cygwin >>>> > dll? >>>> > >>>> > Your help is highly appreciated. >>>> >>>>That really depends on how much of the POSIX functionallity provided by >>>>Cygwin your program uses and what unix tools (besides the compiler and >>>>make) are necessary to build it. In the best case a simple 'make' >>>>could do it. In the worst case you'll have to gather some extra stuff >>>>to be able to do it. >>>> Take a look at >>>> http://mefriss1.swan.ac.uk/~jfonseca/gnu-win32/documentation/porting/ for >>>> some more insight in this problem. >>>> >>>> After you build your program the cygwin dll dependency will be >>>> dropped >>>> since MinGW programs depend on msvcrt.dll. >>> >>>You might also consider using MSYS. It is already set up with Posix >>>dependencies intact, and is, in essence a Mingw development environment >>>which eliminates any and all dependencies on cygwin.dll while >>>maintaining and supporting Unix-like shells. > >I also make a strong reference to MSYS in that page. ;-) > >>>As Jose has noted, Mingw has no dependencies on cygwin.dll. MSYS is >>>Mingw with shell capabilith (hence posix dependencies intact). MSYS is >>>in beta testing and is available in binary form from the Mingw download >>>page (http://sourceforge.net/project/showfiles.php?group_id=2435). >> >>The last I heard, msys was a modified cygwin DLL. So, wouldn't he be >>trading reliance on the cygwin1.dll with reliance on the msys.dll? > >Not really. MSYS is a posix system which has as its purpose enable the >porting of unix packages _to_ MinGW. MSYS is centered in MinGW an not >on himself. For example, by default when build an application on MSYS >you target MinGW. And how does that help in this regard? AFAICT, this doesn't solve the user's problem in any way. They have a program which uses the cygwin DLL. They were not, AFAICT, talking about a POSIX environment for building tools. They have a program which used the UNIX API. Not the same thing at all. cgf |