Can NPP find my MinGW inside NPP Folder?
-
I like portable, so i downloaded npp portable 844, i also have MinGW portable. I put MinGW inside my NPP folder. I use NppExec to compile and run c++ with this:
NPP_SAVE
cd $(CURRENT_DIRECTORY)
g++ -Wall $(FILE_NAME) -o $(NAME_PART)
NPP_RUN cmd /k $(NAME_PART)ofcourse it will not work, because my npp can not find my MinGW. So i use complete path to find g++, but still have another problem with library. FYI i don’t want to make path in windows, i want npp find my minGW, any help?
Thank you in advanced
-
@Dedi
there are other predefined environment variables like$(NPP_DIRECTORY)
. Type$(
in theexec NppExec Script...
dialog and you will get a list of currently implemented variables. -
@Ekopalypse
Thank you for your reply. I already found out how. maybe this is help when someone need:ENV_SET PATH = D:\npp.8.4.4.portable.x64\MinGW;D:\npp.8.4.4.portable.x64\MinGW\bin
NPP_SAVE
cd $(CURRENT_DIRECTORY)
g++ -Wall $(FILE_NAME) -o $(NAME_PART)
NPP_RUN cmd /k $(NAME_PART)hope this help.
-
@Dedi said in Can NPP find my MinGW inside NPP Folder?:
@Ekopalypse
Thank you for your reply. I already found out how.FYI, when you update NPP, assuming you put it under a different folder name, you will have to edit your script to match. If you use what @Ekopalypse suggested, you won’t have to:
ENV_SET PATH = $(NPP_DIRECTORY)\MinGW;$(NPP_DIRECTORY)\MinGW\bin NPP_SAVE cd $(CURRENT_DIRECTORY) g++ -Wall $(FILE_NAME) -o $(NAME_PART) NPP_RUN cmd /k $(NAME_PART)
hope this helps