|
||
Home
Syllabus
Calendar
Weekly Schedule
Getting Help
Homework Academic Integrity
C++ Development
References |
C++ Development Environment Options for your Operating SystemDepending on the native operating system for your computer, you have several different options for C++ development with GNU g++ or LLVM clang++. More information on each choice is below. Windows 7 & earlier
Windows 8/8.1/10
Mac
GNU/Linux
NOTE: It is possible to run a true dual-boot on Windows or Mac by partitioning your hard drive and installing a GNU/Linux distribution there, but it requires a more complicated setup. Only do this if you really know what you're doing. Instructions exist online for how to do this, but it is possible to brick your machine this way and we won't necessarily be able to help you with any issues you encounter, though we will try. Cygwin -- a UNIX environment for the Windows Operating SystemIf you are using the RCS default installation of the Windows operating system, you should already have Cygwin (although probably not all of the packages we need for this course). You can do all of your work for this class using Cygwin, g++, and a text editor such as Sublime (in other words, you don't need to use Visual Studio). Follow these steps to install Cygwin from scratch or add additional packages to an existing Cygwin installation: MinGW (Minimalist GNU for Windows) is a lighter weight alternative to Cygwin: MacOSX XCodeIf you're using a Mac, you'll need to install XCode, which is a free download from the Apple App store. XCode provides both a C++ compiler (technically the LLVM clang++ compiler) and an integrated development environment (IDE) similar to Microsoft's Visual Studio. Make sure to install XCode's "Command Line Tools" so that you can run the compiler from the Terminal command line. NOTE: Even if you plan to use the XCode IDE for the bulk of your development & testing, in lab & office hours we will usually ask you to demo your program from the Terminal command line. There are many references online to walk you through installation (different versions of MacOSX might have slightly different procedures). Here's one:
Ubuntu WubiUbuntu Wubi is a special installer that allows dual-booting Windows and Ubuntu without having to do disk partitioning or other complicated setup. Ubuntu is installed on your disk and you can remove it via the Windows Control Panel (where you uninstall normal applications) at any time. Install and uninstall instructions are here: Ubuntu in VirtualBoxHere are some install instructions on installing Ubuntu in VirtualBox. If you want a different operating system, you can generally use the same instructions and just substitute the OS image you have for the Ubuntu one referenced in the instructions.
g++ or clang++ on Ubuntu:Installing g++ or clang++ on Ubuntu (and many other GNU/Linux variants) is as simple as running one or both of the following commands in a terminal: sudo apt-get install g++ sudo apt-get install clang++-3.8 NOTE: sudo apt-get install clang++ used to work, but might be buggy now trying to install conflicting versions. Quick Test of Compilation
Confirm you're in the right location by listing the directory contents typing: ls You should see the file temperature.cpp and maybe some other stuff. Quick Test of Memory Debugger Installation & Usage
|