Installing C++ compiler for CSc212 Data Structures



Similar documents
Eclipse installation, configuration and operation

Setting Up a Windows Virtual Machine for SANS FOR526

Installing the Android SDK

Cygwin: getting the setup tool

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

DataCove. Installation Instructions for Search Plug-in for Microsoft Outlook 2007 & 2010 (All Users)

Appendix M: Introduction to Microsoft Visual C Express Edition

CEFNS Web Hosting a Guide for CS212

Chapter 1: Getting Started

Lab: Data Backup and Recovery in Windows XP

Code::Blocks Student Manual

Building and Using Web Services With JDeveloper 11g

Code Estimation Tools Directions for a Services Engagement

Installing VPN for PC v1.3

Word 2010: Mail Merge to with Attachments

Lesson 2. From computer to USB

Mac System Setup Guide (Pre-Class)

Eclipse.org CDT and Cygwin: A Tutorial on Installation and Functionality

PuTTY/Cygwin Tutorial. By Ben Meister Written for CS 23, Winter 2007

Lab - Data Backup and Recovery in Windows XP

Installing VinNOW Client Computers

How to use the VMware Workstation / Player to create an ISaGRAF (Ver. 3.55) development environment?

Appendix K Introduction to Microsoft Visual C++ 6.0

How To Upgrade Your Microsoft SQL Server for Accounting CS Version

Installing Matlab at Home

Lab 0 (Setting up your Development Environment) Week 1

How to Configure Windows 8.1 to run ereports on IE11

CSA Software Listing Table of Contents. Both Windows and Mac platforms are supported.

Developer s Guide. Revised June 19, 2015

Inventory Computers Using TechAtlas for Libraries

Getting Started using the SQuirreL SQL Client

Working with SQL Server Integration Services

DocumentMall PPDM Upload Link Version 1.0 User s Guide

BSD SpecLink-E Installation Instructions For. Professional and Corporate Editions

Sitecore Ecommerce Enterprise Edition Installation Guide Installation guide for administrators and developers

Programming with the Dev C++ IDE

You may have been given a download link on your trial software . Use this link to download the software.

Using Free PGI and Xcode

Installing the Cygwin UNIX Emulator on Windows 7

Running a Program on an AVD

Configuring ICVMLT32.EXE as a Windows Service

Website Development Komodo Editor and HTML Intro

Setting up Auto Import/Export for Version 7

Volume SYNAMETRICS TECHNOLOGIES. A Division of IndusSoft Technologies, Inc. DeltaCopy User s Guide

How to share folders on Windows 7 and Windows 8

Notepad++ The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3

Bluetooth Installation

Setting Up ALERE with Client/Server Data

An introduction to Cygwin

Team Foundation Server 2012 Installation Guide

Driver Upgrade Instructions

VIVIDESK Desktops can be accessed with a Macintosh Computer by one of two methods:

Witango Application Server 6. Installation Guide for Windows

JAVS Scheduled Publishing. Installation/Configuration... 4 Manual Operation... 6 Automating Scheduled Publishing... 7 Windows XP... 7 Windows 7...

Ipswitch Client Installation Guide

Configuring a Macintosh Laptop to Use Multiple Displays

How to Configure Windows 7 to run ereports on IE 11

Installing Java 5.0 and Eclipse on Mac OS X

Practice Fusion API Client Installation Guide for Windows

VMware Horizon FLEX User Guide

Parallels Virtuozzo Containers 4.6 for Windows

Contents AP - BROWSER BASED USER INTERFACE... 3 AP - CLIENT CAPABILITIES Cabinet AP October 2014 P a g e 2

Download and Install the Citrix Receiver for Mac/Linux

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

MS Outlook 2002/2003. V1.0 BullsEye Telecom

Download and Installation Instructions. Visual C# 2010 Help Library

Migrating TimeForce To A New Server

Lab 5 Managing Access to Shared Folders

SourceAnywhere Service Configurator can be launched from Start -> All Programs -> Dynamsoft SourceAnywhere Server.

Librarian. Integrating Secure Workflow and Revision Control into Your Production Environment WHITE PAPER

Initial Setup of Microsoft Outlook with Google Apps Sync for Windows 7. Initial Setup of Microsoft Outlook with Google Apps Sync for Windows 7

Hosting Users Guide 2011

Tutorial on Basic Android Setup

Automating client deployment

Click Start > Control Panel > System icon to open System Properties dialog box. Click Advanced > Environment Variables.

How to deploy fonts using Configuration Manager 2012 R2

Configuring Jet Express for Microsoft Dynamics NAV 2013

1) SETUP ANDROID STUDIO

Apple Mail Setup Guide (POP3)

How to Tunnel Remote Desktop using SSH (Cygwin) for Windows XP (SP2)

Select the barcode font in your farmerswife Client Application

How to Create and Send a Froogle Data Feed

Law Conferencing uses the Webinterpoint 8.2 web conferencing platform. This service is completely reservationless and available 24/7.

Using Windows Task Scheduler instead of the Backup Express Scheduler

How To Filter Spam With Thunderbird On A Pc Or Macintosh (Sailor) On A Macintosh Or Macbook) On Pc Or Ipa (Macintosh) On An Ipa Or Ipam (Soulbird) On Windows

Primavera P6 Professional Windows 8 Installation Instructions. Primavera P6. Installation Instructions. For Windows 8 Users

Tutorial: Assigning Prelogin Criteria to Policies

Creating a Java application using Perfect Developer and the Java Develo...

WakeMyPC technical user guide

Wakanda Studio Features

SSH and Basic Commands

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

SuperOffice AS. CRM Online. Installing the Citrix Online Web plug-in

Remote Desktop Administration

Creating trouble-free numbering in Microsoft Word

Transcription:

for CSc212 Data Structures WKhoo@gc.cuny.edu Spring 2010

1 2 Testing Mac 3

Why are we not using Visual Studio, an Integrated Development (IDE)? Here s several reasons: Visual Studio is good for LARGE project. Your assignments will only involve several files. Visual Studio generates more files than necessary. Visual Studio abstracted the way works; using command prompt, you will see how to include header files and link your program. And really learn the syntax of the language. This tutorial is to guide you through the installation of C++ in your own machine, mainly Windows. Of course, you can always use the department s lab to complete your assignments. If you encounter any problem(s), feel free to contact me. users click here users click here

The installation should be very simple or you should have already done it when you install the developer kit 1. 1 Go to http://developer.apple.com/tools/ 2 Click on Download latest xcode 3 Pick the appropriate download item and follow instructions from there. 1 I am not a Mac user, therefore, I cannot give you detailed instructions

Testing Mac 1 Once you have installed it, you should be able to find the from Applicaton Utilities Shell 2 In the shell, type gcc or g++, without the quotes. 3 If your installation is successful, you should see either gcc: no input files or g++: no input files. 4 If you see command not found or any other weirds return message, then you must have done something wrong in the installation process. If you have successfully install C++ on your Mac machine, you are ready to go. Just use any plain text editor to write your code in. If you have failed the installation process, please try again 2. If the problem persists, please send me an email with the exact description of the problem. 2 You can check the Apple website for some troubleshoots

, you have two options: Installing just the C++ called MinGW Installing a Linux emulator called cygwin click here click here Of course, you re free to install both options. Cygwin is a much more powerful tool and contains lots of utilities; check its website for more detail. MinGW is sufficient for this class and will work with your built-in Windows command prompt.

1 Go to http://www.mingw.org/ 2 Click on Downloads on the left panel. This should bring you to the Source Forge page. 3 Scroll down a bit and you will see Automated MinGW Installer 4 Expand MinGW 5.1.6 and you will see MinGW-5.1.6.exe or look for the newest version. 5 Download the executable and run it. Follow the instructions from there. Once you re done installing, click here to start configuring your environment variables so that your will work properly

Note that cygwin will take A LONG time to download and install since it s a very large file (it s emulating a Linux OS, you know!). I usually start my installation at night, just before bedtime, and let the whole installation run over night. It should be done by the time you wake up. The instructions are also very straight-forward and the default settings will be fine. 1 Go to http://www.cygwin.com/ 2 In the middle of the page, you will see an icon labeled Install or update now!, click on it. 3 It will download a file called setup.exe, save it. 4 Run setup.exe and follow the instructions from there. Remember, the default settings are fine.

Once you re done installing MinGW and/or cygwin, it s time to configure your environment variables, so that your will work properly. 1 Right-click on My Computer and go to Properties. Click and the dialog box will pop up. see figure 2 Click on the Advanced tab on the top. 3 Click on the on the bottom (just above the default ok/cancel/apply buttons) see figure 4 Another dialog box will pop up with the top part labeled User variables and the bottom part labeled System variables. We are interested in the system variables. 5 In the system variables box, find the variable named PATH, highlight it, and click on Edit see figure 6 Be careful NOT to delete anything. In the variable value field, go to the end of the string and add a semicolon (;). 7 Find out where is the bin folder of MinGW and/or cygwin that you just installed. By default, it s usually C:\MinGW\bin or C:\cygwin\bin 8 Append these path(s) to the end of the variable value field. If you re appending more than one, be sure to add semicolon in between paths. see figure 9 Test your installation Test

Step 1 Back

Step 3 Back

Step 5 Back

Step 8 Back

1 Once you have installed it, open up a Windows command prompt or run the cygwin shell. 2 In the prompt/shell, type gcc or g++, without the quotes. 3 If your installation is successful, you should see either gcc: no input files or g++: no input files 4 If you see command not found or any other weird return message, then you must have done something wrong in the installation process If you have successfully install C++ on your Windows machine, you are ready to go. The next slide talks about text editor, it s optional but recommended. If you have failed the installation process, please try again. If the problem persists, please send me an email with the exact description of the problem.

Of course, you can use any plain text editor that Windows has (e.g. Notepad and WordPad). However, TextPad is more powerful and designed for programmers. You will really learn how to program/debug properly using this, instead of doing it the lazy way, using Visual Studio. Here s the website to download TextPad: http://www.textpad.com/ For this, you do not have to configure anything, just download, install and run.