public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: help on running c program on cygwin
  2001-11-11  8:26 help on running c program on cygwin Lily Tsai
@ 2001-11-11  8:26 ` mbuch
  2001-11-11  8:26 ` Tim Prince
  2001-11-11  8:26 ` David Starks-Browning
  2 siblings, 0 replies; 4+ messages in thread
From: mbuch @ 2001-11-11  8:26 UTC (permalink / raw)
  To: Lily Tsai; +Cc: cygwin

On Wed, 14 Nov 2001, Lily Tsai wrote:

> Date: Wed, 14 Nov 2001 20:26:23 -0400 (EDT)
> From: Lily Tsai <oneray@rupture.net>
> To: cygwin@cygwin.com
> Subject: help on running c program on cygwin
> 
> 
> I just installed Cygwin on XP and tried running a simple helloworld in c.
> After a good compilation using gcc, I get nothing when trying to run the
> outputfile.
> 
> $gcc helloworld.c -o helloworld.exe
> 
> $helloworld.exe
> 
> 
> nothing.
> 
> When I double-click on the helloworld.exe icon on Windows Explorer, I get
> an error prompt:
> 
> "This application has failed to start because cygwin1.dll was not found.
> Re-installing the application may fix this problem."
> 
> 
> So, I re-installed and nothing changed.
> 
> Can you help?
> 

You must add at least the cygwin/bin directory to your windows 
path. Try to start the program from inside cygwin (the  shell). 

> Thanks in advance,
> Lily
> 
> 
> 
> --
> 
> -*-*-*-Lily Tsai-*-*-*-
> oneray@rupture.net
> 
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 

###############################################
#         mail:  Matthias Buchmeier           #
#                IFF-IEE                      #
#                Forschungszentrum Juelich    #
#                52425 Juelich                #
#                Germany                      #
#                                             #
#           tel: +49 (0)2461 61 4273          #
#           fax:                4443          #
#         email: m.buchmeier@fz-juelich.de    #
###############################################


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* help on running c program on cygwin
@ 2001-11-11  8:26 Lily Tsai
  2001-11-11  8:26 ` mbuch
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Lily Tsai @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin


I just installed Cygwin on XP and tried running a simple helloworld in c.
After a good compilation using gcc, I get nothing when trying to run the
outputfile.

$gcc helloworld.c -o helloworld.exe

$helloworld.exe


nothing.

When I double-click on the helloworld.exe icon on Windows Explorer, I get
an error prompt:

"This application has failed to start because cygwin1.dll was not found.
Re-installing the application may fix this problem."


So, I re-installed and nothing changed.

Can you help?

Thanks in advance,
Lily



--

-*-*-*-Lily Tsai-*-*-*-
oneray@rupture.net



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* help on running c program on cygwin
  2001-11-11  8:26 help on running c program on cygwin Lily Tsai
  2001-11-11  8:26 ` mbuch
  2001-11-11  8:26 ` Tim Prince
@ 2001-11-11  8:26 ` David Starks-Browning
  2 siblings, 0 replies; 4+ messages in thread
From: David Starks-Browning @ 2001-11-11  8:26 UTC (permalink / raw)
  To: Lily Tsai; +Cc: cygwin

Lily,

I hate to be the third to reply but I didn't find the first two
responses satisfactory.

On Wednesday 14 Nov 01, Lily Tsai writes:
> 
> I just installed Cygwin on XP and tried running a simple helloworld in c.
> After a good compilation using gcc, I get nothing when trying to run the
> outputfile.
> 
> $gcc helloworld.c -o helloworld.exe
> 
> $helloworld.exe
> 
> 
> nothing.

That depends what you mean by "nothing".  If bash says "command not
found", then read the FAQ entry:

	Bash says "command not found", but it's right there!

If *truly* nothing happens, then I have no explanation.

> When I double-click on the helloworld.exe icon on Windows Explorer, I get
> an error prompt:
> 
> "This application has failed to start because cygwin1.dll was not found.
> Re-installing the application may fix this problem."

That's because Windows does not have C:\cygwin\bin (or wherever you
installed Cygwin) in its PATH environment variable.

Someone with Windows XP will have to tell you how to remedy this.  On
NT the "System" control panel lets you set environment variables.  On
9x you can add something to autoexec.bat.

Cygwin will set the PATH for you when you invoke the Bash shell from
the "Cygwin" shortcut.  But that doesn't help when you double-click an
executable from Windows Explorer.

Hope this helps.

Regards,
David
(Cygwin FAQ maintainer)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: help on running c program on cygwin
  2001-11-11  8:26 help on running c program on cygwin Lily Tsai
  2001-11-11  8:26 ` mbuch
@ 2001-11-11  8:26 ` Tim Prince
  2001-11-11  8:26 ` David Starks-Browning
  2 siblings, 0 replies; 4+ messages in thread
From: Tim Prince @ 2001-11-11  8:26 UTC (permalink / raw)
  To: Lily Tsai, cygwin


----- Original Message -----
From: "Lily Tsai" <oneray@rupture.net>
To: <cygwin@cygwin.com>
Sent: Wednesday, November 14, 2001 4:26 PM
Subject: help on running c program on cygwin


>
> I just installed Cygwin on XP and tried running a simple helloworld in c.
> After a good compilation using gcc, I get nothing when trying to run the
> outputfile.
>
> $gcc helloworld.c -o helloworld.exe
>
> $helloworld.exe
>
$ ./helloworld
>
> nothing.
>
> When I double-click on the helloworld.exe icon on Windows Explorer, I get
> an error prompt:
>
> "This application has failed to start because cygwin1.dll was not found.
> Re-installing the application may fix this problem."
>
If, after you think twice about it, you still wish this to work, make a
Windows shortcut to cygwin1.dll in the folder with your helloworld.  Ugly.
>
> So, I re-installed and nothing changed.
>
> Can you help?
>
> Thanks in advance,
> Lily
>



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-11-15 10:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-11  8:26 help on running c program on cygwin Lily Tsai
2001-11-11  8:26 ` mbuch
2001-11-11  8:26 ` Tim Prince
2001-11-11  8:26 ` David Starks-Browning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).