Join Peggy Fisher for an in-depth discussion in this video Download a C++ IDE, part of Up and Running with C++.
In this course, we will start by downloading an IDE, or an integrated development environment. There are many different environments available. I have chosen the eclipse IDE, for C, C++ developers which is a free, open source download. The eclipse.org website, as download links reach the following, Windows 32 bit, N64 bit operating systems, Mac OS 10, Coco 32 and 64 and Linux, both the 32 and 64 bit. On Windows we can find the system type in the Control Panel under System and Security, System.
And you'll see in the System section, the system type for the operating system here is 64-bit operating system. To use Eclipse, we need three things. The Java Runtime Environment, the GNU GCC compiler and Eclipse with the CDT, which is the C, C++ development tools. To check for the Java Runtime Environment on your computer, go to java.com and click on Do I have Java? You're going to agree and continue, if you don't have Java, you want to download the most recent version.
Now let's download the GCC compiler from www.equation.com. You're going to choose programming tools. Then you're going to choose Fortran, C C++. We can either download a self extracting file or burn an ISO file. I'm going to choose the self extracting. Find the appropriate file for your operating system. I'm going to download the latest version 4.9 for my 64 bit operating system. We want to save it to our downloads folder, click Save, and then go to my Downloads, now I want to right click on the GCC-184.108.40.206, and I want to run as administrator.
We want to click Accept. But we want to change the directory where the file is going to get stored. Lets change it to c:MinGW. Now I want to click Install, and Finish. We have to change the install directory to c:\MinGW because that is the default directory that the Eclipse IDE is going to look for the compiler. At this point we have congratulations, we've been successfully installed.
Let's click Finish. It's important to note that if you're installing on a Linux machine or a Mac, your install directions are going to be different. If you are installing on Windows, you might get a pop-up window stating it might not have installed correctly. You can close this box. Now that we have the Runtime Environment and the C++ Compiler on our machine, we can download the version of Eclipse based on our computers operating system. I'm going to click on the Windows 64 bit download and I'm going to choose this download here the Pen State University. Eclipse automatically saves the folder do our downloads folder.
And I'm going to click Save. Now that Eclipse is downloaded, if I extract the file with the current naming convention, it's going to be too long. So I want to rename this file. I'm going to rename it to just say Eclipse download. Now I can click Extract, I can Extract All. I'm going to allow it to default to the downloads directory, click Extract. For windows, when it is finished we need to move the extracted folder to the programs files folder. If we're using a 64 bit system, we want to move it to program files. But if we were using a 32 bit system, we want to move it to the program files that has the x86 in parenthesis.
So I'm going to drag my Eclipse folder over into Program Files. It is also helpful at this time to add a shortcut to our start menu. So go into the Eclipse folder, right click on the eclipse.exe, the application file and say Pin to Start. I'm also going to pin it to my Taskbar to make it easy for me to find. Pin to Taskbar.
- Downloading and exploring the C++ IDE
- Working with loops
- Using predefined functions
- Creating custom functions
- Creating and instantiating classes
- Working with external files
Skill Level Beginner
Q: How do I upgrade the C++ compiler on Mac OS X and Linux?
A: Refer to C/C++ Essential Training for a detailed look at installing or upgrading the C++ compiler on various platforms.
Q: The link to download the Eclipse IDE in the "Download a C++ IDE" movie doesn't work. Where can I find the IDE?
A: Short URLs are case sensitive and need to be typed in exactly as they appear. Type in or simply click http://goo.gl/CzckWp to visit the Eclipse IDE for C/C++ Developers page.