delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/12/05:10:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
From: "Hannu E K Nevalainen \(garbage mail\)" <garbage_collector AT telia DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Error message when compling simple program, help please :)
Date: Thu, 12 Jun 2003 11:08:52 +0200
Message-ID: <NGBBLLIAMFLGJEOAJCCEMEMADAAA.garbage_collector@telia.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <bc85j8$hds$1@main.gmane.org>
Importance: Normal

> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> Of Tomasz Rojek

--8<--
> simplest syntax how to
> compile a C program using gcc on Cygwin. In shorter way - below 
> syntax creates desired
> binary (at least for me :)
> 
> gcc 02l01.c -o 02l01.exe
> 
> so you have to specify output binary file and that's all ;-)
> Greetings

  $ cat hw.c
  #include <stdio.h>
  
  int main() {
  
    printf("Hello, World.\n");
  
  return 0;
  }
  $ gcc hw.c 
  $ ls
  a.exe*  hw.c
  $ ./a
  Hello, World.
  $ 

/Hannu E K Nevalainen, 59~14'N, 17~12'E
 ~ <=> degree

-- 

--END OF MESSAGE-- 

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