Setting up cpp on macos — различия между версиями

Материал из Wiki - Факультет компьютерных наук
Перейти к: навигация, поиск
 
Строка 3: Строка 3:
 
# You will be asked to read the license agreement and enter your administrator password for your computer
 
# You will be asked to read the license agreement and enter your administrator password for your computer
  
[[File:Setting_up_C++_on_macOS_1.png|700x700px]]
+
[[File:Setting_up_C++_on_macOS_1.png]]
  
[[File:Setting_up_C++_on_macOS_2.png|700x700px]]
+
[[File:Setting_up_C++_on_macOS_2.png]]
  
 
<ol start="4" style="list-style-type: decimal;">
 
<ol start="4" style="list-style-type: decimal;">
 
<li>Wait for Xcode to install the required components</li></ol>
 
<li>Wait for Xcode to install the required components</li></ol>
  
[[File:Setting_up_C++_on_macOS_3.png|700x700px]]
+
[[File:Setting_up_C++_on_macOS_3.png]]
  
 
<ol start="5" style="list-style-type: decimal;">
 
<ol start="5" style="list-style-type: decimal;">

Текущая версия на 03:09, 9 января 2019

  1. Install Xcode from the App Store
  2. Launch Xcode
  3. You will be asked to read the license agreement and enter your administrator password for your computer

Setting up C++ on macOS 1.png

Setting up C++ on macOS 2.png

  1. Wait for Xcode to install the required components

Setting up C++ on macOS 3.png

  1. After installation you will be greeted with the Xcode welcome window

Setting up C++ on macOS 4.png

You have now installed the developer tools and you can now start developing C++ applications.

You can manually compile programs from the command line using clang++ instead of gcc.

At this point you can either:

  1. Create a C++ project in Xcode
  2. Install CLion