C compilers and assignment 3 CS 210 Tutorial 8 Compiling C, assignment 3 helps Studwww.cs.auckland.ac.nz/ ~mngu012/public.html/210/8/
At least 3 ways to compile C Using gcc in chaos.cs.auckland.ac.nz Using gcc in Cygwin Using visual studio Other compiler: rs/cpp.shtml
Chaos.cs.auckland.ac.nz SHH connection: Putty, SSH Putty: SSH: Mirror.cs.auckland.ac.nz ?
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
Cygwin to run gcc Help on how to make cygwin run with gcc /tutorial8/cygwin.htm Everything else just the same as Unix chaos.cs.auckland.ac.nz
Compile C in Visual Studio
Assignment 3 Using library IO and Number bsr IO.print.enter; bsr IO.readLine.enter; bsr Number.fromString.enter; bsr IO.vprintf.enter; IOPrintLineReadLine and PrintNumbers folders