This is the mail archive of the cygwin 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: Executing ready compiled C program using bash shell

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 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

You may need to take the source code and compile it using a Cygwin
bash shell and the Cygwin gcc environment.

From 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 ® functionality, like signals, ptys, etc. Again, you need to
build your apps from source if you want to take advantage of Cygwin



Problem reports:
Unsubscribe info:

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