Ankur Jain Kothari wrote:dude i mean...how do i use cygwin?
What cygwin does is make your windows command shell behave like unix. To ask how to use cygwin, is like asking how to use unix, and of course, can't be answered in a single topic. Maybe you can pick up a good book on unix.
Ankur Jain Kothari wrote:what editor to use?
That's completely up to you. Cygwin doesn't disable the windows tools, so you are free to use the editors that you are currently comfortable with.
Ankur Jain Kothari wrote:how to compile a program..how to run it?
First, you need to make sure that cygwin actually installed the c compiler. Then, I recommend that you also install the man pages for the c compiler. With the man pages installed, you can try "man cc", to get full information about the c compiler. Another option is to pick up a book about the gnu c compiler.
Henry Wong wrote:What cygwin does is make your windows command shell behave like unix. To ask how to use cygwin, is like asking how to use unix, and of course, can't be answered in a single topic. Maybe you can pick up a good book on unix.
Another option is to pick up a book about the gnu c compiler.
All good recommendations. Also many here have had no problem running Cygwin and the gnu C compiler by studying the online documentation and downloadable help files that these great tools have available. They're decent and pretty complete.
Pradip Bhattacharya wrote:if you just want to learn C and your are using windows, then you can go for Microsoft Visual C++ 2008 Express Edition http://www.microsoft.com/express/Downloads/#2008-Visual-CPP (which is for free) .
NO! Not the evil empire! (joking!).
For some reason I do have an aversion to using MS products, perhaps because I was a Borland aficionado from way-back. Myself, I've used gnu-C/MinGW along with Notepad++ when learning to create JNI code.
Ankur Jain Kothari wrote:could you show me the most basic way of using a compiler with a notepad++ please...i dont want to use netbeans or eclipse...something similar to using javac java on command prompt.....that is...the true form
Sorry, but I'm no C pro and it's been a couple of years since I've worked with this, so for me to recall this to show you how to use it, I'd have to first do what you need to do: read the docs and play with it. Believe me, if I could get it to work, anyone can.
pete stein wrote:NO! Not the evil empire! (joking!)
I can understand why you termed it as an 'evil empire' . But its really an excellent IDE. Good code highlighting,debugging.
And I love Notepad++. Used it in numerous projects. From web development to game development.
Ankur Jain Kothari wrote:what does linking mean?
i created a test.c file...compiled it using gcc test.c
in that folder am getting some output file with a name 'a'
I'm not sure as again it's been a long time. What commands are you using when you compile? -c? -o? I think the -o links the compiled code into an executable. Again, the docs and Google should help out here.
if i use gcc test.c the executable created is a.out
i have to use gcc -o test test.c
and then run the test file