Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Can NPP find my MinGW inside NPP Folder?

    Help wanted · · · – – – · · ·
    3
    4
    112
    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.
    • Dedi
      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

      Ekopalypse 1 Reply Last reply Reply Quote 0
      • Ekopalypse
        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.

        Dedi 1 Reply Last reply Reply Quote 2
        • Dedi
          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.

          PeterJones 1 Reply Last reply Reply Quote 0
          • PeterJones
            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
            Copyright © 2014 NodeBB Forums | Contributors