🚩 🚩 Steps (with Timestamps) 🚩 🚩 00:00 Demo of compiling and running C program from Notepad++. 00:58 Install MinGW (Minimalist GNU for Windows) 01:42 Install GCC, GCC++ Compilers in MinGW 03:00 Setup an environment variable in PATH for MinGW's gcc.exe, so that Notepad++ can find the gcc.exe executable. 05:20 Next, install NPPExec notepad++ plugin to execute C Program. 05:50 Create a C Compiler script for Notepad++ NPPExec plugin. Copy the code below to create a new compiler option. 06:48 Create a menu item in NPPExec for C Compiler 08:00 Test run C Code from Notepad++ 09:55 Create keyboard shortcut for compiling and running C program from Notepad++
Sir code not seeing properly which would be paste in the plugins execute NppExce command place, can you send me that code so that I can complete the process Thanks
Hi, Sir. I followed the instructions. This message keep showing whenever I compile a code, "; about to start a child process: "a" CreateProcess() failed with error code 2: The system cannot find the file specified." ..... Maybe there's error somewhere but I 'm not sure where.
Czane, I did some research and it seems that this issue can be due to Path issue. Check out this Stackoverflow post which describe similar issue. (stackoverflow.com/questions/43069561/c-mingw32-createprocess-failed-with-error-code-2-the-system-cannot-find-the). Hope it helps.
First things first thank you Chris Amit, this video is the best online to get notepadd++ up and running. For those of you that are getting this code error :"; about to start a child process: "a" CreateProcess() failed with error code 2: TRY THIS! AFTER following the video completely: 1.Press Win key and type Control Panel 2.Open Control Panel and click on System and security, System,and then Advanced System Settings. 3Click on Enviormental Variables 4. Under system Variables click NEW 5.Enter Variable Name as : MinGW 6.Value: C:\MinGW\bin 7. Save and restart Notepad++ Hope this helps
Hi, thank you for this video. I have a little question: everything worked, but when i try to open the .exe file, it start but the console closes immedialty. How can i keep the console open? Sorry if this is a stupid question :c
@Ojeid, when the exe file is executed, it will close it after its execution. So, that is why you are seeing that it closes immediately. You can open a command prompt and then execute the exe in that. Then you will be able to see that it is printing "Hello World" in a console window.
i followed the instructions and when user needs to give the input at that time i print message first that "Please enter numbers to addition" and i write after scanf function to take input but in console it takes input first and print message afterwords . any solutions ???
Thank you very much. But I am getting error as below, while running C code for printing 'Welcome'. NPP_EXEC: "C Compiler" NPP_SAVE: C:\CPrograms\a.c CD Current directory: C:\Program Files\Notepad++ C:\minGW\bin\gcc.exe -g "a.c" Process started (PID=18376) >>> gcc.exe: error: a.c: No such file or directory gcc.exe: fatal error: no input files compilation terminated.
Nisha, it could be due to spaces in the "Program Files", please take a look at this that goes into gcc compile error due to spaces in folder name. (superuser.com/questions/804276/gnu-gcc-compiler-fails-to-compile-when-path-contains-spaces-c)
Hello, I get this error whenever I try to compile: ; about to start a child process: "a" CreateProcess() failed with error code 2: The system cannot find the file specified. How do I fix it ?
First things first thank you Chris Amit, this video is the best online to get notepadd++ up and running. For those of you that are getting this code error :"; about to start a child process: "a" CreateProcess() failed with error code 2: TRY THIS! AFTER following the video completely: 1.Press Win key and type Control Panel 2.Open Control Panel and click on System and security, System,and then Advanced System Settings. 3Click on Enviormental Variables 4. Under system Variables click NEW 5.Enter Variable Name as : MinGW 6.Value: C:\MinGW\bin 7. Save and restart Notepad++ Hope this helps
thank's for this video sir but i have a question; where did you get the code you inserted when you were asked for command(s)? cause i did all the steps and i'm blocked there ie i don't know were to get the code from; if you could help me with that please
If I understand your question correctly, the code is included in the description of the video. Here it is. NPP_SAVE CD $(CURRENT_DIRECTORY) C:\minGW\bin\gcc.exe -g "$(FILE_NAME)" a
Hello The Leader's Way, I am using ASCIIArt to create those. It is not manual, you can easily create with a single command. I will make a video about how to create those, as there are number of people who have asked me the same thing. It is pretty cool. I will send you a video link once I upload it. Thank you for your comments.
The Leaders Way, I have created a video that describes how to create ASCII text banner as you had asked. Please check this out. How to Create ASCII Text with Figlet on Windows and in Notepad++ ua-cam.com/video/mC_OvZyeoUo/v-deo.html
First things first thank you Chris Amit, this video is the best online to get notepadd++ up and running. For those of you that are getting this code error :"; about to start a child process: "a" CreateProcess() failed with error code 2: TRY THIS! AFTER following the video completely: 1.Press Win key and type Control Panel 2.Open Control Panel and click on System and security, System,and then Advanced System Settings. 3Click on Enviormental Variables 4. Under system Variables click NEW 5.Enter Variable Name as : MinGW 6.Value: C:\MinGW\bin 7. Save and restart Notepad++ Hope this helps
okok, it work, basically, sometimes the antivirus will block the exe file making it unable to execute propely, so... deactivate the antivirus first and see how it work
Jishan, it is possible that you may have downloaded and installed source code of MinGW. Look for mingw-get-setup.exe for downloading. Download it and launch the installer. Accept the terms and move on. If you still cannot find gcc.exe, please let me know.
First things first thank you Chris Amit, this video is the best online to get notepadd++ up and running. For those of you that are getting this code error :"; about to start a child process: "a" CreateProcess() failed with error code 2: TRY THIS! AFTER following the video completely: 1.Press Win key and type Control Panel 2.Open Control Panel and click on System and security, System,and then Advanced System Settings. 3Click on Enviormental Variables 4. Under system Variables click NEW 5.Enter Variable Name as : MinGW 6.Value: C:\MinGW\bin 7. Save and restart Notepad++ Hope this helps
🚩
🚩
Steps (with Timestamps) 🚩
🚩
00:00 Demo of compiling and running C program from Notepad++.
00:58 Install MinGW (Minimalist GNU for Windows)
01:42 Install GCC, GCC++ Compilers in MinGW
03:00 Setup an environment variable in PATH for MinGW's gcc.exe, so that Notepad++ can find the gcc.exe executable.
05:20 Next, install NPPExec notepad++ plugin to execute C Program.
05:50 Create a C Compiler script for Notepad++ NPPExec plugin. Copy the code below to create a new compiler option.
06:48 Create a menu item in NPPExec for C Compiler
08:00 Test run C Code from Notepad++
09:55 Create keyboard shortcut for compiling and running C program from Notepad++
Thanks mate finally got it to work was gonna give up on coding
Glad to know that it was helpful. Thanks.
this was so helpful
Glad to help.
Sir code not seeing properly which would be paste in the plugins execute NppExce command place, can you send me that code so that I can complete the process
Thanks
thank you so much. very useful video.
Glad to know that you liked it.
Thanks a lot. I could set it up in one go.
Thanks
thank you so much for this 🙏
You're welcome 😊
Hi, Sir. I followed the instructions. This message keep showing whenever I compile a code,
"; about to start a child process: "a"
CreateProcess() failed with error code 2:
The system cannot find the file specified."
..... Maybe there's error somewhere but I 'm not sure where.
Czane, I did some research and it seems that this issue can be due to Path issue. Check out this Stackoverflow post which describe similar issue. (stackoverflow.com/questions/43069561/c-mingw32-createprocess-failed-with-error-code-2-the-system-cannot-find-the). Hope it helps.
Got the same issue too.
First things first thank you Chris Amit, this video is the best online to get notepadd++ up and running. For those of you that are getting this code error :"; about to start a child process: "a"
CreateProcess() failed with error code 2: TRY THIS! AFTER following the video completely:
1.Press Win key and type Control Panel
2.Open Control Panel and click on System and security, System,and then Advanced System Settings.
3Click on Enviormental Variables
4. Under system Variables click NEW
5.Enter Variable Name as : MinGW
6.Value: C:\MinGW\bin
7. Save and restart Notepad++
Hope this helps
Hi, thank you for this video.
I have a little question:
everything worked, but when i try to open the .exe file, it start but the console closes immedialty.
How can i keep the console open?
Sorry if this is a stupid question :c
@Ojeid, when the exe file is executed, it will close it after its execution. So, that is why you are seeing that it closes immediately. You can open a command prompt and then execute the exe in that.
Then you will be able to see that it is printing "Hello World" in a console window.
i followed the instructions and when user needs to give the input at that time i print message first that "Please enter numbers to addition" and i write after scanf function to take input but in console it takes input first and print message afterwords . any solutions ???
Well Explained, thanks it worked for me.
Thank you. I am glad that it was helpful.
thank you sir👍
Glad to know that it was helpful.
great video very helpful
Thank you Louis. Please like the video if you can.
Thank you very much.
But I am getting error as below, while running C code for printing 'Welcome'.
NPP_EXEC: "C Compiler"
NPP_SAVE: C:\CPrograms\a.c
CD
Current directory: C:\Program Files\Notepad++
C:\minGW\bin\gcc.exe -g "a.c"
Process started (PID=18376) >>>
gcc.exe: error: a.c: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
Nisha, it could be due to spaces in the "Program Files", please take a look at this that goes into gcc compile error due to spaces in folder name. (superuser.com/questions/804276/gnu-gcc-compiler-fails-to-compile-when-path-contains-spaces-c)
thank you for this video
Music World, thank you. glad that it was useful. Please like or subscribe, if you can. Thanks.
Hello, I get this error whenever I try to compile: ; about to start a child process: "a"
CreateProcess() failed with error code 2:
The system cannot find the file specified.
How do I fix it ?
i know where you getting problem
you just rename your file like "hello.c" (apply dot C) and fu$kk the problem
because the problem has been solved now.
First things first thank you Chris Amit, this video is the best online to get notepadd++ up and running. For those of you that are getting this code error :"; about to start a child process: "a"
CreateProcess() failed with error code 2: TRY THIS! AFTER following the video completely:
1.Press Win key and type Control Panel
2.Open Control Panel and click on System and security, System,and then Advanced System Settings.
3Click on Enviormental Variables
4. Under system Variables click NEW
5.Enter Variable Name as : MinGW
6.Value: C:\MinGW\bin
7. Save and restart Notepad++
Hope this helps
Thanks sir,
👌👌👍👍👍👍
Neo thapa, thank you. I am glad it was useful.
thank's for this video sir but i have a question; where did you get the code you inserted when you were asked for command(s)? cause i did all the steps and i'm blocked there ie i don't know were to get the code from; if you could help me with that please
If I understand your question correctly, the code is included in the description of the video. Here it is.
NPP_SAVE
CD $(CURRENT_DIRECTORY)
C:\minGW\bin\gcc.exe -g "$(FILE_NAME)"
a
Sir which version of notepad ++ have installed
hi , the title of the video in notepad++ do you do it manually or is there a way to generate it ?
Hello The Leader's Way, I am using ASCIIArt to create those. It is not manual, you can easily create with a single command. I will make a video about how to create those, as there are number of people who have asked me the same thing. It is pretty cool. I will send you a video link once I upload it. Thank you for your comments.
The Leaders Way, I have created a video that describes how to create ASCII text banner as you had asked. Please check this out. How to Create ASCII Text with Figlet on Windows and in Notepad++
ua-cam.com/video/mC_OvZyeoUo/v-deo.html
Can we change the name of the compiled file from a.exe to any file name. Exe
Yes of course you can
Thanks
Saliha, you're welcome. (please like the video if you can). Thanks.
I found gcc in bin but its not not gcc.exe however its of same size as gcc.exe
Is it possible that the gcc extension is hidden in windows explorer?
error: ; about to start a child process: "a"
CreateProcess() failed with error code 2:
Not sure what is this error due to. Does it create a log file that we can take a look for the error.
First things first thank you Chris Amit, this video is the best online to get notepadd++ up and running. For those of you that are getting this code error :"; about to start a child process: "a"
CreateProcess() failed with error code 2: TRY THIS! AFTER following the video completely:
1.Press Win key and type Control Panel
2.Open Control Panel and click on System and security, System,and then Advanced System Settings.
3Click on Enviormental Variables
4. Under system Variables click NEW
5.Enter Variable Name as : MinGW
6.Value: C:\MinGW\bin
7. Save and restart Notepad++
Hope this helps
bro can u help me i cant run the code at the end u tell me to try and it is not working
Are you getting any errors? Is it compiling the code correctly?
@@AmitChristianno it just cant run it
@@atom2919 can you share your source code
iam not able to see the output in console but the programm is not having any errors
Taraka, sorry to know that you are having issues with it. Did it create and executable file (.exe)?
taraka rajeswararao, did it work?
@@AmitChristian i have the same problem, and it does create a new file, but no output sadly
okok, it work, basically, sometimes the antivirus will block the exe file making it unable to execute propely, so... deactivate the antivirus first and see how it work
How to take input from the user ??
Once you compile c code, it should be able to take an input. Does it not work ?
I am not finding gcc.ex in bin..
what can i do
Jishan, it is possible that you may have downloaded and installed source code of MinGW. Look for mingw-get-setup.exe for downloading. Download it and launch the installer. Accept the terms and move on. If you still cannot find gcc.exe, please let me know.
@@AmitChristian I've downloaded mingw-get-setup.exe but I still can't find it in the bin. Kindly assist me in this
@@Mariajonnes Did you install the mingw setup file? It should install in C:\MinGW, and you should find BIN directory in that folder.
i can't use graphics.h header file
Nithin, what error are you getting?
geting error
Nothing, what error are you getting?
ok working in NppExec script at if give a.exe it showing output in notepad
console
First things first thank you Chris Amit, this video is the best online to get notepadd++ up and running. For those of you that are getting this code error :"; about to start a child process: "a"
CreateProcess() failed with error code 2: TRY THIS! AFTER following the video completely:
1.Press Win key and type Control Panel
2.Open Control Panel and click on System and security, System,and then Advanced System Settings.
3Click on Enviormental Variables
4. Under system Variables click NEW
5.Enter Variable Name as : MinGW
6.Value: C:\MinGW\bin
7. Save and restart Notepad++
Hope this helps
⚡ Hello Friends ⚡ hope you found this useful! Do Subscribe ♥ to my channel (ua-cam.com/channels/bU0jmMgFAfmL1J1BHsEmAA.html) for more videos.