![]() In the right hand pane, click on the "Add" drop down list and choose the item "Program.". In the left hand pane of the window that comes up, click on the word "Tools" (don't click on the + next to the word "Tools"). Click on TextPad's "Configure -> Preferences." menu item. Step 7: We need to create a tool in TextPad that lets us run a program that we have compiled and linked. (You can check at this point and look in TextPad's "Tools" menu to see if the tool "G++" is at the bottom of the menu list.) ![]() This completes the creation of the compiler tool. Now click on the button "OK" at the bottom of the window. Make sure that the check boxes labeled "Save all documents first" and "Capture output" are checked. In the text box labeled "Regular expression to match output:" (below all of the check boxes) enter the following text in place of what is currently there: In the text box labeled "Initial folder:" enter the following text: ![]() (Note: Upper and lower case matter! The best way to enter the text is to use cut and paste from here to the text box.) In the text box labeled "Parameters:" enter the following text. This brings up a window where we can configure the "G++" tool. Under the word "Tools" you should have the item "G++". Now click on the + next to the word "Tools" in the left hand pane of the window. Click on the button "Apply" at the bottom of this window. Now you should be back to TextPad's "Preferences" window. In the file dialog box that comes up, navigate to the directory C:\MinGW\bin and then in that directory double click on the program g++.exe (make sure you choose g++.exe and not gcc.exe). Step 6: We need to create a tool in TextPad to call the gcc compiler and linker. We need to install two new tools that let us use MinGW (i.e. Several "tools" are pre-installed by TextPad. Click on the Tools menu at the top of the TextPad window. Step 5: Run TextPad by finding it in your Start Menu. Step 4: Install TextPad by double clicking on the installer that you just downloaded. Use the following link to download the installation file (which is just over 2 MB in size). TextPad is shareware you can download and use it for free for a trial period, but then you are supposed to pay a shareware fee if you plan to continue using it. Otherwise, download the TextPad text editor (the current version, at the time of this writing, is TextPad Version 4.7.3). Step 3: If you have already installed TextPad on your computer (for use with another programming language), then skip to Step 5. The space in that directory name can cause all kinds of problems. Do not install MinGW in the C:\Program Files directory. Have the installer install your copy of MinGW in the directory C:\MinGW. The first step after you click on the link below is that you have to chose a "mirror", that is, you have to chose a site that you will download the file from.) (This download takes a couple of steps to complete. Put the file in some temporary location on your computer. ![]() This file is fairly large, so you may want to do this download on campus and then transfer the file to either a zip disk or a CD-R disk. Step 1: First you need to download an installer file. The steps show you how to access the gcc compiler from the text editor TextPad. Below are several steps that lead you through the installation. MinGW is a port of the GCC compiler to Microsoft Windows (GCC is the compiler for the Linux operating system). I highly recommend that you get one of these programs and install it on your computer.Īnother option for C/C++ programming at home is to download and install MinGW, a freely available C/C++ compiler. You can purchase these programs at the campus bookstore for just $10.00 each. One option is to install Microsoft Visual Studio 6 or Microsoft Visual Studio. If you want to do C (or C++) programming at home, then you need to install a C/C++ programming environment on your computer. CS 302/ECE 468 - Using GCC at home Installing the MinGW (gcc) compiler on your home computer
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |