Introduction
Microsoft and Borland are the two reputable names within the programming world for compilers. They sell compiler software for many programming languages. For the C++ programming language, the Microsoft Visual Studio which includes C++ and Borland C++ Builder are excellent compilers. Often with textbooks or free via the internet; you can get Microsoft’s Visual C++ Express or Borland’s Personal Edition version of a compiler. However, installing either of these compliers can be complex. Microsoft’s Visual Studio compiler often creates a variety of installation problems (such as making sure the operating system and .net components are current) thus making it difficult for students to install at home. These compliers require you to build a project to encompass every program. Using a commercially sold compiler that professional programmers would consider using for project development is fine for professionals but often confusing to beginners. Eventually, if you are going to become a professional programmer, you will need to become familiar with the commercially sold compilers.
We suggest that beginning students consider one of the easier to install compiler software packages for use in a programming fundamentals course. The best option we have found is an open source compiler/IDE (Integrated Development Environment) named: Bloodshed Dev-C++ 5 compiler/IDE.
- DEFINITION 1: open source
- Group development of source code for software that is made available to the public at no cost.
Bloodshed Dev-C++ 5 compiler/IDE
Advantages: Can be installed on Windows 95/98/NT/2000/XP operating systems. I have it installed on Windows Vista operating system, thus it can work with slower processors and almost any Windows operating system. It only requires about 80 MB of storage space (usually enough for the compiler with all of its files and storage room for several of your programs). It is very easy to install and easy to use. Does not require the use of a "project"; thus individual source code files can be easily compiled.
Disadvantages: Would not normally be used by professional programmers, but is sufficient for a beginning computer programming course and is a full-featured compiler/IDE.
Unique Advantage: Can be installed and run on a flash drive, thus giving the student the ability to work on their lab assignments on any computer that has a USB port. This can give the student portability, being able to do lab assignments at home, work, library, open lab, classroom, friend’s house, etc.
- DEFINITION 2: portability
- The ability to transport software on a flash drive and thus use it on various machines.
Preparation before Installation
Creating the Needed Folders and Sub-Folders
You need to get the software and a C++ source code program that has been tested and is error free. You will need about 80MB of storage space. We suggest that you create two folders on your hard drive or flash drive depending on which installation you choose. If on a flash drive create them at the root level of the drive. If on your home machine, you can use the folder area set up by the operating system for you as a user. Name them:
- Cpp_Software_Download
- Cpp_Source_Code_Files
Within the Cpp_Source_Code_Files folder, create a sub-folder named:
- Compiler_Test
To help you keep files organized, you will want to create other sub-folders for storing source code files. We suggest you create at least two other sub-folder to be used with Connexions' related modules. Within the Cpp_Source_Code_Files, create sub-folders named:
- Demo_Programs
- Monitor_Header
- DEFINITION 3: folder
- A named area for storage of documents or other files on a disk drive or flash drive.
- DEFINITION 4: source code
- Any collection of statements or declarations written in some human-readable computer programming language.
Getting the Software
The full version of the software is named: Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC 3.4.2 You can either download it from Bloodshed or download the version as of 12/8/2008 that is stored on the Connexions web site. Store it in the Cpp_Software_Download folder you created. The software is approximately 9.1 MB and will take several minutes to download if you are using a dial-up modem connection.
TIP:
The software has not significantly changed since 2007 and the Connexions version will be sufficient for most users. The Bloodshed link requires some additional navigation to get to the software download. Thus, because it is significantly easier, we recommend that you download the software from the Connections web site.Link to Bloodshed: http://www.bloodshed.net/dev/devcpp.html
Download from Connexions: devcpp-4.9.9.2_setup.exe
Getting a C++ Source Code File
Listed below is a C++ source code file titled: Compiler_Test.cpp It has been prepared for Connexions web delivery. Download and store it in the Compiler_Test sub-folder you created. You may need to right click on the link and select "Save Target As" in order to download the file.
Download from Connexions: Compiler_Test.cpp
Installation Instructions for Bloodshed Dev-C++ 5 compiler/IDE
The Version 5 which is well tested (don’t let the beta release scare you) and should work on a variety of machines and various Microsoft Operating systems including Windows 98, Windows 2000, Windows XP and Windows Vista. Below are installation instructions for installing it on a machine or installing it on a flash drive. We don’t suggest trying to switch between the machine drive and flash drive. If it is installed on the machine drive and you try installing it on a flash drive, it creates problems and will not work perperly. Either install it on the flash drive to gain your portability or install it on your machine.
Computer Installation Instructions
- Navigate to the Cpp_Software_Download folder and run the devcpp-4.9.9.2_setup.exe software by double cliking on the filename.
- Use common sense and answer the installation prompts. NOTE THE FOLLOWING TWO ITEMS:
- When it gets to the "Choose Install Location" use the default software location of: C:\Dev-Cpp\ (or select the location you want to store the installed program but use the default unless you are familiar with installing software).
- When it asks: "Do you want to install Dev C++ for all users on this computer?" answer "Yes".
- After it installs, it will ask some "first time configuration" questions. Again, use common sense and answer the questions. NOTE THE FOLLOWING ITEM:
- Answer "No" to the retrieve information from header files.
- It will start your compiler/IDE with a "Tip of the day". We suggest you check the box in the lower left and select "Close".
- Close your compiler/IDE by using the normal red "X" box. We want to show you how to start your compiller normally.
- You start your compiler software similar to starting any software loaded on your machine ("Start" then "All Programs" then "Bloodshed Dev-C++" then "Dev-C++").
- On the menus at the top – Select "File" then "Open project or file" then navigate to where your source code file (Compiler_Test.cpp) is stored on your hard drive. See the suggested folder name above. Select the source code file and open it.
- You should see the source code listing. Press F9 key or select the "Execute" then "Compile & Run" from the menus at the top. A black screen box should appear and you answer questions appropriately to run the program. When you are done running your program the black screen box goes away.
Flash Drive Installation Instructions
- Navigate to the Cpp_Software_Download folder and run the devcpp-4.9.9.2_setup.exe software by double cliking on the filename.
- Use common sense and answer the installation prompts. NOTE THE FOLLOWING TWO ITEMS:
- When it gets to the "Choose Install Location" you can see that the default software location of: C:\Dev-Cpp\however, it needs to be changed. Change the "Destination Directory" by selecting changing the default software location from: C:\Dev-Cpp\ to DriveLetter:\Dev-Cpp\ (where the DriveLetter is the drive that represents your flash drive).
- When it asks: "Do you want to install Dev C++ for all users on this computer?" answer "No".
- After it installs, it will ask some "first time configuration" questions. Again, use common sense and answer the questions. NOTE THE FOLLOWING ITEM:
- Answer "No" to the retrieve information from header files.
- It will start your compiler/IDE with a "Tip of the day". We suggest you check the box in the lower left and select "Close".
- Close your compiler/IDE by using the normal red "X" box. We want to show you how to start your compiller normally.
- To start your compiler software you navigate to the "Dev-Cpp" folder on your flash drive and select the "devcpp.exe" application. NOTE: When using the flash drive you should not try starting the compiler by double clicking on a C++ source code file. This method works on a machine installation but does not work on a flash drive installation.
- On the menus at the top – Select "File" then "Open project or file" then navigate to where your source code file (Compiler_Test.cpp) is stored on your flash drive. See the suggested folder name above. Select the source code file and open it.
- You should see the source code listing. Press F9 key or select the "Execute" then "Compile & Run" from the menus at the top. A black screen box should appear and you answer questions appropriately to run the program. When you are done running your program the black screen box goes away.
0 comments:
Post a Comment