This is the mail archive of the cygwin 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]

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/


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