This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]