Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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\)" To: Subject: RE: Error message when compling simple program, help please :) Date: Thu, 12 Jun 2003 11:08:52 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: 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 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/