Download presentation
Presentation is loading. Please wait.
Published byDouglas Blankenship Modified over 9 years ago
1
C programming and compilers
2
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: http://www.thefreecountry.com/compile rs/cpp.shtml
3
Chaos.cs.auckland.ac.nz SHH connection: Putty, SSH Putty: http://www.putty.nl/download.html http://www.putty.nl/download.html SSH: Mirror.cs.auckland.ac.nz ?
4
Putty & SSH
5
Run Putty
8
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
9
Man gcc – Ctrl+C to exit
10
Compile C code in chaos Compile Gcc –o filename.exe filename.c Run: ./ filename.exe arg1 arg2 arg3
11
Compile C on Cygwin Document on Cygwin http://www.cs.auckland.ac.nz/~bruce- h/resources/cygwin/ http://www.cs.auckland.ac.nz/~bruce- 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.
12
Cygwin to run gcc Help on how to make cygwin run with gcc http://www.eecg.utoronto.ca/~aamodt/ece 242/cygwin.html http://www.eecg.utoronto.ca/~aamodt/ece 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
13
Cygwin gcc compiler
14
Compile C in Visual Studio
21
Running some examples Run examples… Any question?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.