X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.6 required=5.0 tests=AWL,BAYES_40,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RP_MATCHES_RCVD,SPF_HELO_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Ted Byers Subject: Re: How do I run a program compiled in cygwin from a program that is running in a Windows CMD shell? Date: Thu, 15 Sep 2011 18:58:50 +0000 (UTC) Lines: 42 Message-ID: References: <4910244359 DOT 20110915185240 AT mtu-net DOT ru> <4E721B17 DOT 5080004 AT molconn DOT com> <4E7239CC DOT 9050209 AT cygwin DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Larry Hall (Cygwin cygwin.com> writes: > > On 9/15/2011 1:28 PM, Ted Byers wrote: > > LMH molconn.com> writes: > > > > > What, exactly, does '-mno-cygwin' do? > > > > BTW: With gcc v 4.5.3, using 'G++ -mno-cygwin' followed by the other > > commandline arguements needed to compile something results in an error where > > it complains '-mno-cygwin' is no longer valid (I forget the exact wording, but > > that is the gist of the error message I got). > > Right. '-mno-cygwin' is not a supported flag for gcc with version 4. It was > there to allow a kind of cross compiler that targets Win32 instead of > Cygwin. This is obviously not what you want anyway so it's of no > consequence to you that the flag has been removed. There are now > actual cross compilers available in Cygwin for gcc 4 that serve the purpose > of the old '-mno-cygwin' flag. > Hi Larry, Thanks I installed only the gcc4 compilers (all of them, v4.5.3), but I didn't even look for cross compilers. What is the name of the cross compilers (would they be those that include 'mingw' in the name? Not having installed, them, perhaps this is a naive question, but will they live alongside the gcc4 compilers without the names of the compilers clashing? I recalled something about mingw, but thought that was a completely different approach to having gcc on Windows, and in the versions included with RTools, the names of the programs there would definitely collide with those for gcc4 Thanks again Ted -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple