﻿1
00:00:00,420 --> 00:00:06,420
‫So in this video, we're going to install the C and C++ compiler for Mac.

2
00:00:06,750 --> 00:00:15,150
‫So in the previous video, we left off on this screen and now we're going to click on ceiling for Mac

3
00:00:15,180 --> 00:00:16,160
‫OS.

4
00:00:16,470 --> 00:00:23,220
‫So I'll click on this and that brings up this page in a web browser and I'll come up here and scroll

5
00:00:23,220 --> 00:00:23,830
‫up a little bit.

6
00:00:23,850 --> 00:00:31,950
‫There are a couple of prerequisites which are install Visual Studio code on Mac OS and install the C++

7
00:00:31,950 --> 00:00:33,530
‫extension for VS code.

8
00:00:33,540 --> 00:00:41,400
‫So we did that in the last video and then we just need to do this part where it says ensure ceiling

9
00:00:41,400 --> 00:00:42,630
‫is installed.

10
00:00:42,750 --> 00:00:45,720
‫And on a mac it should already be there.

11
00:00:46,080 --> 00:00:52,980
‫So in order to do this, I'm going to copy this and then we need to bring up a terminal.

12
00:00:52,980 --> 00:00:59,490
‫And I think the easiest way to bring up a terminal is you just do command spacebar.

13
00:00:59,820 --> 00:01:06,540
‫And that brings up this spotlight search window and just type in terminal and then press enter.

14
00:01:06,540 --> 00:01:08,730
‫And that brings up our terminal like that.

15
00:01:09,180 --> 00:01:15,480
‫And then I'll do a command plus to make this a little bit bigger so it's easier to see and I'll paste

16
00:01:15,480 --> 00:01:19,770
‫in see lang space dash dash version.

17
00:01:20,100 --> 00:01:26,580
‫And you can see here that we actually do have a version installed and that's really what you need to

18
00:01:26,580 --> 00:01:33,210
‫do is make sure that there is a version installed and if for some reason you don't, you come back to

19
00:01:33,210 --> 00:01:34,410
‫the Web page over here.

20
00:01:35,300 --> 00:01:37,520
‫And you get this line.

21
00:01:38,570 --> 00:01:40,970
‫And then you just come over to the terminal.

22
00:01:41,810 --> 00:01:45,290
‫And you paste this in here and install that.

23
00:01:46,210 --> 00:01:49,630
‫It is unlikely that you will need to do that.

24
00:01:50,110 --> 00:01:52,970
‫But in case you do, that is how you do that step.

25
00:01:52,990 --> 00:01:58,480
‫I'm not going to press enter here because I already have that installed, so I'll come back over here

26
00:01:58,480 --> 00:02:07,030
‫to the browser and if you scroll up here, it says that we can create a hello world and shows us how

27
00:02:07,030 --> 00:02:11,680
‫to make a directory and then change directories to go into that directory.

28
00:02:11,680 --> 00:02:17,740
‫But what I'm going to do here is instead of doing it through the command line, I'm going to go directly

29
00:02:17,740 --> 00:02:20,410
‫to VS code and do it that way.

30
00:02:20,410 --> 00:02:22,540
‫I think that's an easier way to do that.

31
00:02:22,660 --> 00:02:27,550
‫So this is where I'm going to break from the instructions on the web page.

32
00:02:28,190 --> 00:02:31,100
‫So now let's flip over to VS Code.

33
00:02:31,730 --> 00:02:41,030
‫So I'm going to come up here to file open folder and then I already have a folder created called CP.

34
00:02:41,060 --> 00:02:46,930
‫I'm going to open this and that opens the CP file right there.

35
00:02:46,940 --> 00:02:54,350
‫And if I go into miscellaneous, I have a file called Hello World Dot CP.

36
00:02:55,220 --> 00:03:00,170
‫So then I'll come up to this play button up here, I'll click on this.

37
00:03:00,990 --> 00:03:03,860
‫And that runs our code and outputs.

38
00:03:03,870 --> 00:03:04,980
‫Hello world.

39
00:03:05,880 --> 00:03:13,710
‫So in the next video I will show some additional configuration I did for my Visual Studio code environment.

40
00:03:14,160 --> 00:03:16,890
‫And I will see you in that video.

