This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Error message when compling simple program, help please :)
- From: "Hannu E K Nevalainen \(garbage mail\)" <garbage_collector at telia dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 12 Jun 2003 11:08:52 +0200
- Subject: RE: Error message when compling simple program, help please :)
> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.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/