After upgrading the system, I typed GCC in the terminal, and the result was that the command was not found, indicating that the compiler is missing from the system now
The specific installation method is as follows
Http://stackoverflow.com/questions/9353444/how-to-use-install-gcc-on-mac-os-x-10-8-xcode-4-4
Alternatively, you can search for Xcode directly in AppStore, which will automatically find your machine-matching version to download and install, which is a bit longer
In xcode-preferences-downloads, install common line tools
GCC can use it.
After installation, the general small program for a long time do not open Xcode such a large IDE
Developed directly at the command line in a VI+GCC way
Or you can use sublime to write and then enter the terminal to execute the GCC command
Text editor has a lot of commands and tricks, self-degree niang, not here to say
After compiling the source file with GCC, if you do not specify a file output name, it will generate the A.out file in the current directory to execute it on the command line, you need to enter./a.out./used to perform
Installing the GCC compiler and the integrated development environment in MAC OS X