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]

Re: beginner's problem



> I'm very unfamiliar with compilers, so don't laugh at my question please.
> Where should I save my text files that I want to be compiled?  I type "gcc
> hello.c -o hello.c", but I get "no such file or directory", then
> "no input files"

In general, you would create a new empty directory for each
programming project you're working on, and put all the sources and
headers and stuff for that project in that directory.  The compiler
(gcc et al) should be on your PATH, so you can invoke "gcc foo.c -o
foo.exe" in the directory where foo.c exists, and have everything
work.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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