3. Setup Dev-C++ and Settings

  • 2 months ago
3. Setup Dev-C++ and Settings
Transcript
00:00Let us see how to download Dev C++ so for Dev C++ you can in Chrome or in any
00:07browser you can say download Dev C++ and get many links and one of the link is
00:16for from bloodshed.net which you can go to bloodshed.net and from here you can
00:22download Dev C++. Dev C++ that is beta version 5.0 is available here it is with
00:29the MinGW that is with compiler or just without compiler that is executable only
00:35and source code is also available so you can download any one of these of your
00:40choice so if you install with MinGW then you can and directly start using
00:45Dev C++ otherwise you have to install compiler separately that is minimal
00:51GNU compiler for Windows you have to download it separately. So click on this
00:57one and start downloading it will start downloading yeah once it has finished
01:04downloading you can install Dev C++ software and you can directly use it
01:12after downloading install Dev C++
01:21okay
01:27it has finished installation if I show you the folder where Dev C++ is
01:46installed this is in C and program files and here is Dev CPP so you can see that
01:55it is also installed MinGW that is GNU compiler for Windows this is a minimal
02:02compiler for Windows. Let us start Dev C++ so English language is selected
02:09then next then ok. Yes Dev C++ is ready now before we start using it we have to
02:17make some important settings and these settings we have to do only once so let
02:22me show you what settings we have to do go to the menu in the menu you will find
02:27tools on the top then select compiler options and here few tabs are there that
02:35is general tab inside this mention hyphen G this will allow the compiler or
02:43the debugger to debug the program so there is a flag for the compiler which
02:47will allow the debugger to debug the program so what is debugging and all we
02:52will see it later in the next videos you have to mention this hyphen G or minus G
02:58then go to another tab that is programs
03:05here you'll find GCC so for that GCC dot exe is given and this compiler by
03:11default it will be C++ 98 version but we'll be using the features of C++ 11
03:18that is that is the later version so to use C++ 11 we have to mention here so
03:25this is what you are supposed to write hyphen std that is minus std you can
03:31read it as then equal to C++ 11 then do the same thing in the next field also
03:43write C++ 11 std C++ 11 it can be capital or small C++ that doesn't make
03:52difference by mentioning this now the ID will be using C++ 11 compiler now we are
04:00using the in our course will be we will be using the features of C++ 11 also so
04:05if this is not mentioned those features will not work so this is the very
04:10important thing that you have to do in the settings now we are ready just say
04:15okay now the settings are done now we are ready to do any project or write our
04:22C++ programs so let me show you how to create a new project say new project and
04:32select console application let the project name as my first and it should
04:41be created in documents now the project is ready this is main.cpp file inside
04:48the project so here I'll just give a message hello world and endl it should
04:55use namespace for cout as well as endl let us build a project and execute
05:05yeah hello world has appeared so that's all this is how you can open a new
05:11project for every program or application you can start a new project or else for
05:15practicing in the same project you can go on writing new code there and you can
05:19recompile and run it

Recommended