delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/14/03:40:37

X-Spam-Check-By: sourceware.org
Message-ID: <10845a340607140040x50b16652w5442fb1f4f0b21dc@mail.gmail.com>
Date: Fri, 14 Jul 2006 08:40:24 +0100
From: "Richard Quadling" <rquadling AT googlemail DOT com>
Reply-To: RQuadling AT googlemail DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Consol mode question
In-Reply-To: <20060714053926.91781.qmail@web61314.mail.yahoo.com>
MIME-Version: 1.0
References: <20060714053926 DOT 91781 DOT qmail AT web61314 DOT mail DOT yahoo DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin 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 AT yahoo DOT 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&amp;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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019