This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Consol mode question
- From: "Richard Quadling" <rquadling at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 14 Jul 2006 08:40:24 +0100
- Subject: Re: Consol mode question
- References: <20060714053926.91781.qmail@web61314.mail.yahoo.com>
- Reply-to: RQuadling at GoogleMail dot com
I tried JUST what you did.
It worked.
I've a windows only user and only recently installed cygwin.
I created my hello.c, opened a CMD Prompt, typed gcc hello.c -o
hello.exe and got no errors. Typed hello and got "Hello, world!". As
expected.
I installed Cygwin using the setup.exe from Cygwin's site and MAY have
added the cygwin's bin directory to my PATH (if it wasn't done by the
installation - can't remember).
That's it! Easy.
On 14/07/06, Benn Fine <bennfine@yahoo.com> wrote:
Warning - old time unix user, unsure windows user
newbie question: how do I use cygwin from a dos
window, as seen in the example below from the
documentation.
Console Mode Applications
Use gcc to compile, just like under UNIX. Refer to the
GCC User's Guide for information on standard usage and
options. Here's a simple example:
Example 4.1. Building Hello World with GCC
C:\> gcc hello.c -o hello.exe
C:\> hello.exe
Hello, World
C:\>
.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/