This is the mail archive of the
cygwin
mailing list for the Cygwin project.
newbie question about using gcc in cygwin
- From: "Emerson" <woailvzi at yahoo dot com dot cn>
- To: cygwin at cygwin dot com
- Date: Fri, 7 Jan 2005 15:42:59 +0800
- Subject: newbie question about using gcc in cygwin
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/