X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: From: "DePriest, Jason R." Date: Wed, 16 Dec 2009 09:50:55 -0600 Message-ID: <31b7d2790912160750l1e77357egae678dc9455467d2@mail.gmail.com> Subject: Re: Executing ready compiled C program using bash shell To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Wed, Dec 16, 2009 at 9:33 AM, Jasmit Kaur <> wrote: > I have recently downloaded cygwin. I am trying to run a ready compiled > C binary program using bash shell...I get the following error...cannot > execute binary file - any suggestions? > > Thanks > Jasmit > > -- First, welcome to Cygwin. Second, please follow the guidelines here http://cygwin.com/problems.html when reporting an issue. Finally, what do you mean exactly by "ready compiled C binary program?" If it wasn't compiled using Cygwin, it won't run under Cygwin. You may need to take the source code and compile it using a Cygwin bash shell and the Cygwin gcc environment. =46rom the Cygwin home page: What Isn't Cygwin? # Cygwin is not a way to run native linux apps on Windows. You have to rebuild your application from source if you want it to run on Windows. # Cygwin is not a way to magically make native Windows apps aware of UNIX =AE functionality, like signals, ptys, etc. Again, you need to build your apps from source if you want to take advantage of Cygwin functionality. Thanks. -Jason -- 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