I downloaded minGW to compile C programs using the gcc command in the Notepad ++ console. I downloaded all the packages so that it could compile other languages as well, and I double-checked that I have g ++. Exe, like gcc.exe for compiling c-programs. But I don’t understand how to get the opportunity to compile and run C ++ programs. I saw another entry “Getting the compiler to work in Notepad” and how it copied and pasted:
NPP_SAVE CD $(CURRENT_DIRECTORY) C:\MinGW\bin\g++.exe -g "$(FILE_NAME)"
in the nppExec console. When I do this, I get:
NPP_SAVE: C:\Tutorial\helloWorld.cpp CD: C:\Tutorial Current directory: C:\Tutorial C:\MinGW\bin\g++.exe -g "helloWorld.cpp" Process started >>> <<< Process finished. (Exit code 0) ================ READY ================
which seems to work, but what should I do next?
here is the program in notepad ++
#include <iostream> using namespace std; int main() { cout << "Hello World"; }
source share