| Solaris and Linux |
Use your favourite editor (GNU emacs) to create a C source file, e.g., my_prog.c. Compile with
gcc -o my_prog my_prog.c |
| MS Windows (Cygwin) |
The best way to use GCC on MS Windows is first to start the bash command-line shell:
set PATH=M:\Cygwin\bin;%PATH%
M:\Cygwin\bin\bash --login -i
|
mount m:\\cygwin /
mount m:\\cygwin\\bin /usr/bin
mount m:\\cygwin\\lib /usr/lib
|
cd /cygdrive/p
mkdir my_c_src
cd my_c_src
|
gcc my_prog.c -o my_prog |
| ...previous | up (conts) | next... |