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 To: cygwin AT cygwin DOT com From: "Emerson" Subject: newbie question about using gcc in cygwin Date: Fri, 7 Jan 2005 15:42:59 +0800 Lines: 19 Message-ID: X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: 222.66.21.6 X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-IsSubscribed: yes Hi all: I want to know how to compile a program in cygwin using gcc. Here is my instance: 1>I install cygwin in c:/cygwin 2>I wrote a piece of code named test.c in E:/prog/test/test.c. AND suppose the program just printf "hello". How can i compile and link my code using gcc ? Should i give the absolute path of my program (E:/prog/test/test.c.) when using gcc? And another problem is where the "hello " is printf? Is it in the windows console or "cygwin console"(i don't know whether it is appropriate name )? Thank you for your patience. -- ------------------------ Emerson -- 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/