Difference between revisions of "GCC"
Jump to navigation
Jump to search
Cris Porter (talk | contribs) (Created page with "GCC, the Gnu Compiler Collection Used in: CS 100, 101 == Supported Operating Systems == File:Win10-logo.pngFile:Macos-logo.pngFile:Linux-logo.png Available for...") |
Cris Porter (talk | contribs) |
||
Line 1: | Line 1: | ||
− | GCC, the Gnu Compiler Collection | + | [[File:GCC-logo.png|left|frameless]] GCC, the Gnu Compiler Collection |
Used in: CS 100, 101 | Used in: CS 100, 101 |
Revision as of 14:07, 12 August 2020
GCC, the Gnu Compiler Collection
Used in: CS 100, 101
Contents
Supported Operating Systems
Available for Windows, Mac, and Linux.
VPN requirement
Connection to campus VPN is not required.
Mac Instructions for use
- Figure out how to open a Terminal window (you may want to put Terminal Application on your dock).
- Test to see if you have gcc installed. Enter the following command into the terminal window: gcc
- If you get a message saying The gcc command requires the command line developer tools. Would you like to install them now? then click the Install option.
- To check the installation was successful, type gcc in the terminal window and hit return. If you see an error message similar to clang: error: no input files, you are all set. This means the gcc command/compiler exists on your system and you need to enter a C program for compilation.
Windows Instructions for use
- Browse to http://www.cygwin.com and click on the Install Cygwin link near the top of the teal-colored box on the left-hand side of the page, then follow the instructions. Make sure you use the 64-bit version of the setup program if you have a 64-bit computer.
- Answer all the questions using the default answers. You are asked to select a location from which to download. Pick any location; some will be slow and some will be fast. Hopefully, you'll pick a fast location. At some point, you see a Select Packages screen. Click on plus signs next to:
- Devel and click on the Skip column entry next to the gcc-core, gcc-g++, gdb, and make entries. (By default, the installation will skip these packages. By clicking the skip, it becomes unskip, and it will install the packages.)
- Editors and click on the Skip labels next to the emacs, vim, and vim-common entries.
- Net and click on the Skip label next to the openssh and rsync entry.
- Finally, click on the Next button in the lower right corner and continue accepting defaults.
- After installation, open a Cygwin terminal (there should be an icon on your Desktop).
- Type gcc in a Cygwin terminal window. If you see gcc: fatal error: no input files, you are all set. This means the gcc command/compiler installed and you need to enter a C program for compilation.