Installing the GCC compiler and the integrated development environment in MAC OS X

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.