

However, you can obtain the clang C++ compiler, a worthy “competitor” to g++ that has a very loyal following, in a package called “Command Line Tools for XCode” available from Apple’s developer Site. G++ is no longer available as an official Apple distribution. This is just another package.įollow the usual procedure for installing packages on your system and get the latest versions ofĢ Installing a C++ Compiler on Apple OS/X If you are running Linux on your PC, you presumably already know how to install new software packages in your Linux distribution.

The first big decision is one that you have already made: 1 What is the operating system of the PC on which you are going to be working? 1 Installing a C++ Compiler in Linux In most cases, though, you want to install your compiler and make sure it’s working before you install your IDE. Both IDEs are free, and both can be installed on Windows, OS/X, and Linux PCs. The most popular IDEs for C++ programming at ODU are Code::Blocks and Eclipse. are not compilers – they are IDEs.Īn IDE (Integrated Development Environment) is a program that “surrounds” a compiler and provides support for a variety of programming activities, including writing code, compiling it, correcting errors, running and testing the resulting program, and debugging the program. A compiler is not a program that allows you to create, edit, run, test, & debug your code. That’s because a compiler is a very specific thing – a program that translates your programming language source code into an executable. Furthermore, conspicuously missing from this list is any means of creating or editing code. Of course, most people don’t want to do all of their work from the command line. It will let you compile, run, and debug C++ code when working from the command line. But many will find it convenient to put together a programming environment on their own PCs.īy the end of this process, you need to have installed So, no, ODU CS students don’t **need* to do this.

You do have the option, though, of connecting remotely to CS Dept machines and doing all your work there.

I assume that you are here because you want the ability to do at least some of your programming work on your own PC. This document will walk you through the process of installing a free C++ compiler on your PC.
