Community
    • Login

    Can NPP find my MinGW inside NPP Folder?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 304 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DediD
      Dedi
      last edited by

      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

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @Dedi
        last edited by

        @Dedi
        there are other predefined environment variables like $(NPP_DIRECTORY). Type $( in the exec NppExec Script... dialog and you will get a list of currently implemented variables.

        DediD 1 Reply Last reply Reply Quote 2
        • DediD
          Dedi @Ekopalypse
          last edited by

          @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.

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Dedi
            last edited by

            @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

            1 Reply Last reply Reply Quote 2
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors