﻿1
00:00:00,440 --> 00:00:06,380
‫So in this video, we're going to install the C and C++ compiler for Windows.

2
00:00:06,620 --> 00:00:13,580
‫So this is where we left off in the last video we had installed VS Code and these two extensions over

3
00:00:13,580 --> 00:00:16,670
‫here, C, C++ and Code Runner.

4
00:00:17,120 --> 00:00:20,600
‫But we have to install the compiler separately.

5
00:00:21,200 --> 00:00:30,770
‫So in order to do that, we're going to come over here to where it says GCSE and Ming W W 64 on Windows

6
00:00:30,770 --> 00:00:32,090
‫and we'll click on this.

7
00:00:33,390 --> 00:00:36,540
‫And that'll bring up this link in this web browser.

8
00:00:36,690 --> 00:00:41,190
‫And it's just a series of steps to be able to install the compiler.

9
00:00:42,290 --> 00:00:44,420
‫So I'm going to scroll this up a little bit here.

10
00:00:44,720 --> 00:00:52,400
‫And these first two steps here we've already completed first to install Visual Studio code and then

11
00:00:52,400 --> 00:00:59,810
‫to install the C and C++ extension for VTS code, which is what this is over here.

12
00:01:00,410 --> 00:01:04,130
‫And then we're going to do these two steps here.

13
00:01:04,670 --> 00:01:12,830
‫It says, to get the latest version of this software, you go to this website here and then in step

14
00:01:12,830 --> 00:01:19,520
‫four, it just says, follow the instructions on that website, especially step seven.

15
00:01:19,520 --> 00:01:25,160
‫So I'm going to come up here and click on this and that opens this page.

16
00:01:25,160 --> 00:01:32,480
‫So I'll scroll up a little bit here, and if you click on this box, it will download the installer.

17
00:01:32,480 --> 00:01:33,800
‫So I'll click on this.

18
00:01:34,460 --> 00:01:40,340
‫And then once that downloads, I'm going to click on Open File, or you could go to your downloads folder

19
00:01:40,340 --> 00:01:43,910
‫and double click on it there, but I'll just open it from here.

20
00:01:45,110 --> 00:01:52,850
‫And what I will also do is minimize Visual Studio code and just focus on these windows.

21
00:01:53,480 --> 00:01:56,150
‫But I will just accept all of the defaults.

22
00:01:56,150 --> 00:01:58,140
‫We will need this directory path.

23
00:01:58,160 --> 00:01:59,610
‫I'm going to leave that as default.

24
00:01:59,630 --> 00:02:06,650
‫I recommend that you do that as well, but I'll just finish clicking through this and let this install.

25
00:02:07,450 --> 00:02:14,530
‫So once this finishes installing, you'll get this screen, make sure that this box is checked and click

26
00:02:14,530 --> 00:02:15,460
‫finish.

27
00:02:16,390 --> 00:02:19,840
‫And that will bring up this window over here.

28
00:02:20,080 --> 00:02:23,740
‫So if we go back to our browser, there are some other steps we have to do here.

29
00:02:25,280 --> 00:02:29,210
‫This step is just saying make sure that box is checked and click finish.

30
00:02:29,210 --> 00:02:30,680
‫That's what we just did.

31
00:02:31,070 --> 00:02:35,810
‫But there are a few things that we have to do at the command line here to finish the install.

32
00:02:36,970 --> 00:02:40,420
‫So in step five here, we're going to just.

33
00:02:41,250 --> 00:02:42,570
‫Highlight this.

34
00:02:43,340 --> 00:02:50,600
‫I'm just going to right click, say copy and then come over and paste this in at the command line.

35
00:02:51,530 --> 00:02:55,730
‫And I'll press enter and then it will install some additional software.

36
00:02:57,170 --> 00:03:01,160
‫And there are a few times that will have to indicate yes or no.

37
00:03:01,160 --> 00:03:03,920
‫And you will always choose yes.

38
00:03:03,920 --> 00:03:06,050
‫Just do y and enter.

39
00:03:06,930 --> 00:03:09,660
‫And then again it's asking you yes or no.

40
00:03:09,660 --> 00:03:11,220
‫We'll just say yes.

41
00:03:12,140 --> 00:03:13,910
‫And that screen will disappear.

42
00:03:13,910 --> 00:03:22,280
‫And we'll come back over to our Web browser and go to step six and it says, Run this from the start

43
00:03:22,280 --> 00:03:22,910
‫menu.

44
00:03:23,330 --> 00:03:25,430
‫So I'll come down here to the start menu.

45
00:03:26,280 --> 00:03:32,400
‫And I'll say M s y s and you can see that this comes up as the best match.

46
00:03:32,400 --> 00:03:36,270
‫I'll press enter and that opens this window again.

47
00:03:37,740 --> 00:03:43,590
‫So then I'll come over here and highlight this and I'll say, Copy.

48
00:03:44,640 --> 00:03:45,870
‫Then I'll paste this.

49
00:03:45,870 --> 00:03:51,870
‫I like doing a copy and paste because it makes it where I am not going to have any typos and I'll press

50
00:03:51,870 --> 00:03:52,380
‫enter.

51
00:03:53,250 --> 00:03:55,230
‫And down here, we'll say yes.

52
00:03:57,020 --> 00:04:01,850
‫And then one final step here is step seven.

53
00:04:03,690 --> 00:04:07,050
‫Well, highlight this and we'll say copy.

54
00:04:07,790 --> 00:04:12,230
‫Come over here and we'll paste this and press enter.

55
00:04:12,910 --> 00:04:15,970
‫And then down here it says, enter a selection.

56
00:04:15,970 --> 00:04:17,140
‫Default is all.

57
00:04:17,140 --> 00:04:20,650
‫You just have to press enter and they will say yes.

58
00:04:22,750 --> 00:04:25,210
‫So that step takes a little while to install.

59
00:04:25,210 --> 00:04:29,710
‫So I'm just fast forwarding to here and it will look something like this.

60
00:04:29,950 --> 00:04:33,580
‫So that's everything that we need to do on that tab of the browser.

61
00:04:33,850 --> 00:04:39,940
‫I'm going to come back to our original tab here and move down to step five.

62
00:04:40,480 --> 00:04:46,060
‫So in this step, we need to add a path for the bin folder for this software.

63
00:04:46,820 --> 00:04:51,650
‫So step one and the Windows search bar type settings.

64
00:04:51,650 --> 00:04:59,990
‫So I'll do that by coming down here and just typing in settings and I'll press enter and we'll come

65
00:04:59,990 --> 00:05:06,590
‫back to the browser here and search for edit environmental variables for your account.

66
00:05:06,590 --> 00:05:14,060
‫So you just come over here for find a setting and I'll say edit environmental variables and you can

67
00:05:14,060 --> 00:05:17,750
‫see where this came up here and I'll click on this.

68
00:05:18,580 --> 00:05:20,980
‫Come back over here to our instructions.

69
00:05:21,010 --> 00:05:27,460
‫Step three Choose the path variable in your user variables and select.

70
00:05:27,460 --> 00:05:31,660
‫Edit So very important that you do user variables.

71
00:05:32,510 --> 00:05:35,530
‫And what we're going to type in there is going to be this.

72
00:05:35,530 --> 00:05:37,760
‫So I'm going to go ahead and copy this.

73
00:05:38,120 --> 00:05:42,170
‫This is why I suggest that you use the default where this installs.

74
00:05:42,170 --> 00:05:49,130
‫If you didn't use the default, you will need to use the appropriate path for wherever you installed

75
00:05:49,130 --> 00:05:49,730
‫this.

76
00:05:50,360 --> 00:05:55,100
‫So coming back over here, you can see that this is user variables and then system variables.

77
00:05:55,100 --> 00:05:58,040
‫We want user variables.

78
00:05:58,310 --> 00:06:00,800
‫Make sure you highlight path.

79
00:06:01,480 --> 00:06:04,120
‫And here we're going to click edit.

80
00:06:05,800 --> 00:06:08,230
‫And then we're going to click on New.

81
00:06:09,170 --> 00:06:12,710
‫I'm going to paste this here and I'll click okay.

82
00:06:13,220 --> 00:06:15,650
‫And then I'll click okay again.

83
00:06:16,330 --> 00:06:19,630
‫And then I'll also close this settings folder.

84
00:06:20,540 --> 00:06:24,110
‫So now we're going to check our installation.

85
00:06:24,900 --> 00:06:28,200
‫So to check the installation, we'll need a command prompt.

86
00:06:28,920 --> 00:06:32,670
‫So I'll come down here and I'm going to type in command.

87
00:06:32,940 --> 00:06:35,430
‫And when I click Enter.

88
00:06:36,400 --> 00:06:38,200
‫And then we need to come down here.

89
00:06:38,200 --> 00:06:42,190
‫I will copy and paste this or you can just type it as G plus plus.

90
00:06:42,870 --> 00:06:45,210
‫And then dash dash version.

91
00:06:45,970 --> 00:06:48,700
‫So I'll paste that here.

92
00:06:49,800 --> 00:06:50,940
‫And press enter.

93
00:06:51,330 --> 00:06:54,570
‫And you can see that we have a version number here.

94
00:06:55,170 --> 00:07:00,210
‫If this was not installed, instead of getting the version number, it would indicate that there is

95
00:07:00,210 --> 00:07:03,150
‫some kind of problem that this can't be found.

96
00:07:03,420 --> 00:07:07,890
‫So we'll do that for this line down here as well.

97
00:07:08,310 --> 00:07:10,770
‫And I'll say copy.

98
00:07:12,250 --> 00:07:14,380
‫And then I'll say Paste.

99
00:07:15,330 --> 00:07:19,980
‫And you can see that we have a version number for this as well.

100
00:07:20,610 --> 00:07:24,330
‫So now we can go ahead and close the command prompt.

101
00:07:25,250 --> 00:07:30,040
‫And if you scroll up some more, it's going to say Create Hello World.

102
00:07:30,050 --> 00:07:35,420
‫Now I'm not going to do it the way they do it here on this Web page where you're going to do all of

103
00:07:35,420 --> 00:07:38,450
‫this from the command line to make a directory or whatever.

104
00:07:38,630 --> 00:07:46,040
‫So you can either do this from the command line or you can just create a folder somewhere in windows.

105
00:07:46,460 --> 00:07:48,140
‫And that's the way I'm going to do this.

106
00:07:48,140 --> 00:07:49,730
‫I already have a folder created.

107
00:07:49,730 --> 00:07:54,800
‫I'm going to minimize all of this and bring these code back up.

108
00:07:55,670 --> 00:08:01,370
‫So you can create that folder wherever you want on your desktop or in your documents folder or wherever

109
00:08:01,370 --> 00:08:02,990
‫I'm going to come up to file.

110
00:08:03,290 --> 00:08:06,170
‫And then I'm going to say Open folder.

111
00:08:07,870 --> 00:08:10,060
‫So I have mine in my documents folder.

112
00:08:10,060 --> 00:08:12,760
‫I've called mine Seip.

113
00:08:13,300 --> 00:08:15,100
‫I must select this folder.

114
00:08:16,630 --> 00:08:20,530
‫And then I want to say, yes, I trust the authors because that's me.

115
00:08:21,560 --> 00:08:25,360
‫And you can see that CP folder is open here.

116
00:08:25,370 --> 00:08:29,870
‫This is our folders for the code that will create in the course.

117
00:08:30,410 --> 00:08:37,670
‫When I come up to miscellaneous and I have Hello World CP so I'm going to click on this.

118
00:08:38,750 --> 00:08:41,170
‫And I have a hello world over here.

119
00:08:41,180 --> 00:08:42,110
‫Simple program.

120
00:08:42,110 --> 00:08:47,660
‫Just need to make sure that C++ is working, and I'll click on this play button up here, which will

121
00:08:47,660 --> 00:08:48,740
‫run the code.

122
00:08:50,200 --> 00:08:57,850
‫And you can see down here that that is printed out hello world, which means that our compiler is installed

123
00:08:58,150 --> 00:08:59,020
‫correctly.

124
00:08:59,820 --> 00:09:06,330
‫So now that you're done with this step, go to the additional configuration video that will apply to

125
00:09:06,330 --> 00:09:14,220
‫all operating systems Windows, Linux and Mac and I will see you in that video.

