From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,788e5be555ea088d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 30 Jan 2006 18:59:40 -0600 Date: Mon, 30 Jan 2006 19:51:01 -0500 From: Jeffrey Creem User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: mingw vs cygwin References: <1138633032.194986.159910@o13g2000cwo.googlegroups.com> In-Reply-To: <1138633032.194986.159910@o13g2000cwo.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-kIvMm6YNFxk+CDPA1o7w/pJNXrrh/mSy9wdkm4+LoZV0Le7ijcQ4yqj43zcUvXQXRRPCsVDzpFl5Hgb!MKI9CPqtyLTGXnZ0gK7H8FH/ZsiZ2aOADGqf6UI8PGki/aR7yh4ZM///LMCLQq43b5irEh7i0DCT!CaQ= X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:2714 Date: 2006-01-30T19:51:01-05:00 List-Id: midgleyben@hotmail.com wrote: > I have a question about the differences between cygwin adn mingw, with > reference to the ada compiler. > > I need to port ada code to XP from linux, link c code (maybe c++) to > the project and create an exe which supports sockets (networking). So > which way mingw or cygwin ? I have read so many reports of problems > with c under mingw and just problems with gcc-ada but non particularly > up to date, any advice welcome. > > Also if I get the whole cygwin installation I get mingw too, to my > understanding if I use mingw I statically link support for the windows > API and if I use the gcc-ada compiler I need to provide cygwin1.dll for > distribution, is this accurate and can anyone add detail to this > explanation ? > > Thanks in advance > If you go to any "help" newsgroup you will find nothing but problems about a topic so first of all I would not get too worked up about seeing "nothing but problems" with people doing C under mingw. Next, you do not need to provide cygwin1.dll for Ada code that is built from a mingw based distribution. The question is, do you need capability that is present in the cygwin dll or not. The cygwin dll provides essentially a unix compatibility layer. Depending on the nature of your code, you might not need it at all. If you do think you need it, you need to understand the licensing terms of the cygwin dll which is essentially (last time I checked) GPL (not LGPL). (Though I think you can buy a license under different terms from Redhat). If you need to link your code against the standard cygwin dll then you will need to distribute your application under the terms of the dll (read the GPL for details. Short story, you have to give the source code to everyone you give the binary to and you can't limit who they give the source code to). The standard AdaCore GNAT build executables that are mingw based. The cygwin.dll that is inside of most of the GNAT windows binary distributions is there (I think) to support the GDB install which is cygwin based. In general, I would not recommend the cygwin approach unless it is critical to a successful port.