Community
    • Login

    Can NPP find my MinGW inside NPP Folder?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 588 Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors