C programming and compilers
At least 3 ways to compile C Using gcc in UNIX environment via chaos.cs.auckland.ac.nz Using gcc in Cygwin in Windows Using visual studio in Windows Other compiler: rs/cpp.shtml
Chaos.cs.auckland.ac.nz SHH connection: Putty, SSH Putty: SSH: Mirror.cs.auckland.ac.nz ?
Putty & SSH
Run Putty
After log on, putty will put you inside UNIXHOME folder You can go to your G drive by typing “cd..” Type “man gcc” for manuals of GCC
Man gcc – Ctrl+C to exit
Compile C code in chaos Compile Gcc –o filename.exe filename.c Run: ./ filename.exe arg1 arg2 arg3
Compile C on Cygwin Document on Cygwin h/resources/cygwin/ h/resources/cygwin/ Download from \\afs\all\ec.auckland.ac.nz\software\ windows\all\Cygwin Copy the complete directory onto a CD, and take home.
Cygwin to run gcc Help on how to make cygwin run with gcc 242/cygwin.html 242/cygwin.html Make sure you include gcc, gdb and make in Cygwin installation Everything else just the same as Unix chaos.cs.auckland.ac.nz
Cygwin gcc compiler
Compile C in Visual Studio
Running some examples Run examples… Any question?