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.

Slides:



Advertisements
Similar presentations
Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.
Advertisements

Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
Web Site ( Getting around the Web Site to Build and Use COIN-OR JP Fasano IBM Watson.
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
UPLOADING YOUR SERVER CODE TO YOUR VIRTUAL MACHINE.
1 Basics of Linux On linux machine: Login at your home directory Open a “shell” or “terminal” or “xterm” workspace (4) On windows machine Intall linux.
1a – Getting Started Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
When I get my CTPP 2000 CD Home What should I do?.
CprE 288 – Quick intro for compiling C in Linux
N ETWORKED & D ISTRIBUTED COMPUTING S YSTEMS L AB Programming Assignments EE323 Computer Networks.
Development tools cvs, tkdiff, JBuilder, building GATE from the sources.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
C compilers and assignment 3 CS 210 Tutorial 8 Compiling C, assignment 3 helps Studwww.cs.auckland.ac.nz/ ~mngu012/public.html/210/8/
CSC 215 : Procedural Programming with C C Compilers.
Computing Fundamenatls CMSC 201 Computer Science I Penny Rheingans University of Maryland Baltimore County (with inspiration from previous 201 instructors.
TAMU CSCE 313 (the basics). Basic Unix/Linux programming Accessing CS systems  PuTTY (putty.exe) – a Telnet and SSH client  Common hosts: unix.cs.tamu.edu.
Geant4 Installation Supported platforms:  Scientific Linux with gcc 4.1.2/4.6  Mac Os X 10.7 and 10.8 with gcc 4.21  Windows7 with Visual Studio.
COMPSCI 210 Semester Tutorial 7 – C Exercises.
Introduction to Systems Programming (CS 0449) PalmOS Tools: Developer Studio & Cygwin.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Sharif University of technology, Parallel Processing course, MPI & ADA Server Introduction By Shervin Daneshpajouh.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
1 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
UNIX Introduction CSCE 221H Texas A&M University.
Configuring Sourceforge’s CVS to work with Forte (3.0 or later) on WindowsNT and Windows 2000 Specific for MAExplorer.sourceforge.net Written by Eric Shen,
How to create and install packages in R Presenter: Roman Jandarov
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Linux Exercise. Download and Install the latest CentOS version and latest Ubuntu/Fedora OS. Configure a unique Host Name and a permanent IP Address for.
Creating Programs on UNIX This term you can create programs on UNIX or you can create programs using a C++ compiler on your PC. This set of slides steps.
CGS3460 Summer 2011 Programming Using C Andrei Todor.
1 Running Programs on CSP CSP01.csci.unt.edu … CSP09. … Secure shell (ssh) to CSP computer Transfer file(s) using scp, … Edit on CSP machine with vi, pico,
Unix Machine In Computer Science for Teaching Cliff Zou Spring 2015.
CYGWIN install Step1. go to the website cygwin.com, download the setup.exe(click on the icon, install cygwin now) Step2. Double click one setup.exe,install.
Operating Systems. An operating system (os) is a software program that enables the computer hardware to communicate and operate with the computer software.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
ENEE150: Discussion 1 Section 0104/0105 Please Sit Down at a Computer and Login!
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Cygwin Tutorial 1. What is Cygwin? Cygwin offers a UNIX like environment on top of MS-Windows. Gives the ability to use familiar UNIX tools without losing.
Your EC2 Instance. How to Connect to your EC2 Instance?
General Computer Science for Engineers CISC 106 Lecture 03 James Atlas Computer and Information Sciences 6/15/2009.
How to install JavaCV in Eclipse. Make sure to download and install all these before you proceed Eclipse for Java EE developers (current is Juno)
General Computer Science for Engineers CISC 106 Lecture 03 James Atlas Computer and Information Sciences 9/9/2009.
An introduction to Cygwin Lili He Booth Engineering Center for Advanced Technology (BECAT) Seminar.
 CSC 215 : Procedural Programming with C C Compilers.
PuTTY Introduction to Web Programming Kirkwood Continuing Education by Fred McClurg © Copyright 2016, All Rights Reserved ssh client.
Tutorial Six Linux Basics CompSci Semester Two 2016.
Precept I : Lab Environment, Unix, Bash, Emacs
Cygwin Tutorial 1.
CSC 215 : Procedural Programming with C
ENEE150 Discussion 01 Section 0101 Adam Wang.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
How to Work on your METEO 473 codes from your PC at home
UNIX The Basics Source:
Computing Fundamenatls CMSC 201 Computer Science I Penny Rheingans University of Maryland Baltimore County (with inspiration from previous 201 instructors.
CGS3460 Summer 2011 Programming Using C
Lab: ssh, scp, gdb, valgrind
Introduction to UNIX UNIX developed at Bell Labs in 70s
Lab: ssh, scp, gdb, valgrind
Lab 10 Instructions You can use g++ on build server, visual studio on local machine or your preferred C++ IDE. Important Note: For your grade, please show.
1. Open Visual Studio 2008.
Cygwin.
Cygwin Tutorial 1.
Cygwin Tutorial 1.
Video Notes.
Presentation transcript:

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?