tags:

views:

66

answers:

3

how to go into the environment of "c". when using cygwin... please tell me the commands to go into the c environment....

A: 

Install cygwin from cygwin.org. Select development packages like gcc during the process. Open a cygwin shell and call gcc from the command line. Or whatever.

it's a pity we have to *guess* what the OP wants.
pavium
funny - it didn't occur to me she wants to navigate to c:
+1  A: 

Do you want to navigate to the C: drive when in the shell? If so, just do cd c:

newacct
A: 

If you want to cd to the C: drive then one way is:

$ cd /cygdrive/c

If you want to edit/compile/run/debug C programs, then it's:

$ emacs foo.c # edit

$ gcc -Wall foo.c -o foo # compile

$ ./foo # run

$ gdb ./foo # debug

Paul R