How to Run C Program in Notepad++: Compile & Run C with MinGW

preview_player
Показать описание
This video will show you how to compile and run c program in notepad++. You will need to install MinGW in order to compile C program from Notepad++.

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
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++
---
NPP_SAVE
CD $(CURRENT_DIRECTORY)
a
---
5. Save the script as a 'C Compiler'.
6. Create a menu item for the 'C Compiler'.
7. Finally, you can run c code with the newly created menu item.

Some Recommendations:
- Avoid any spaced in the filename or foldername, or it may cause some issues.
- You can also create a shortcut to compile and run the c code from 'Run' menu 'Modify Keyboard Shortcuts'.

ALSO Checkout:

#CompileRunC #CompileRunCProgram

---

🚩 Checkout My other playlists 🚩

---
🚩 please LIKE or SUBSCRIBE.
🚩 Please COMMENT If You Like To See Any Video On Specific Topic

Music Credits:
––––––––––––––––––––––––––––––
Track: Our Leaves in the Breeze — Artificial.Music [Audio Library Release]
Music provided by Audio Library Plus
––––––––––––––––––––––––––––––
Рекомендации по теме
Комментарии
Автор

🚩
🚩
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++

AmitChristian
Автор

Thanks mate finally got it to work was gonna give up on coding

fozzyprozzy
Автор

Thanks a lot. I could set it up in one go.

nc
Автор

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

neerajchauhan
Автор

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.

babceena
Автор

Sir which version of notepad ++ have installed

sarangsalunkhe
Автор

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 ???

dixitvara
Автор

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
Автор

I found gcc in bin but its not not gcc.exe however its of same size as gcc.exe

yogeshvashisth
Автор

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 ?

Samsam-mubi
Автор

Well Explained, thanks it worked for me.

nandanihada
Автор

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.
<<< Process finished (PID=18376). (Exit code 1)
a
; about to start a child process: "a"
CreateProcess() failed with error code 2:
The system cannot find the file specified.

nishapv
Автор

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

mrgabslethal
Автор

Can we change the name of the compiled file from a.exe to any file name. Exe

deepakkavale
Автор

error: ; about to start a child process: "a"
CreateProcess() failed with error code 2:

Edutroniko
Автор

hi, the title of the video in notepad++ do you do it manually or is there a way to generate it ?

theleadersway
Автор

bro can u help me i cant run the code at the end u tell me to try and it is not working

atom
Автор

iam not able to see the output in console but the programm is not having any errors

tarakarajeswararao
Автор

i can't use graphics.h header file

nithinkumar
Автор

I am not finding gcc.ex in bin..
what can i do

jishankhan