Community
    • Login

    What's the script for compiling and running C/C++ in Notepad++ 7.6.3

    Scheduled Pinned Locked Moved General Discussion
    9 Posts 4 Posters 3.4k 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.
    • Abdelrahiman SolimanA
      Abdelrahiman Soliman
      last edited by

      What’s the script in NPP_EXEC for compiling and running C/C++ in Notepad++ 7.6.3.

      Alan KilbornA 1 Reply Last reply Reply Quote 1
      • Alan KilbornA
        Alan Kilborn @Abdelrahiman Soliman
        last edited by

        @Abdelrahiman-Soliman

        That greatly depends upon which C/C++ toolset you are using.

        Abdelrahiman SolimanA 1 Reply Last reply Reply Quote 0
        • dinkumoilD
          dinkumoil
          last edited by dinkumoil

          @Abdelrahiman-Soliman

          Have a look at my Script Collection code repository under NppExec Scripts -> Compile_&_Run.

          There I use Tiny C Compiler for compiling C programs. You have to adapt my script to the toolset you actually use for C/C++ development. Maybe you want to shorten it as well.

          1 Reply Last reply Reply Quote 3
          • Abdelrahiman SolimanA
            Abdelrahiman Soliman @Alan Kilborn
            last edited by

            @Alan-Kilborn

            Whats the toolset? I am using Cygwin 64 bit version 3.0.4

            EkopalypseE Alan KilbornA 2 Replies Last reply Reply Quote 0
            • EkopalypseE
              Ekopalypse @Abdelrahiman Soliman
              last edited by

              @Abdelrahiman-Soliman

              On windows normally you use Visual C++ compiler toolset but cygwin comes with gcc bundled as far as I know. There are other like mentioned by @dinkumoil, tcc or clang or …
              Each toolset requires it own set of parameters etc… to compile and link different projects.

              1 Reply Last reply Reply Quote 3
              • Alan KilbornA
                Alan Kilborn @Abdelrahiman Soliman
                last edited by

                @Abdelrahiman-Soliman

                So you need to know what the following looks like for your situation:

                • command line to compile a file
                • command line to link project together
                • name of resulting exe from successful link

                Then you can put all this together using @dinkumoil 's example NppExec script, for your specific use case

                Make sense?

                Abdelrahiman SolimanA 1 Reply Last reply Reply Quote 2
                • Abdelrahiman SolimanA
                  Abdelrahiman Soliman @Alan Kilborn
                  last edited by

                  @Alan-Kilborn
                  I am not sure if I understood. Very new to programming. How do I find those three steps? And when I find the three steps what script do I choose from @dinkumoil’s list of scripts, there are about 200 different scripts.

                  Alan KilbornA 1 Reply Last reply Reply Quote 0
                  • Alan KilbornA
                    Alan Kilborn @Abdelrahiman Soliman
                    last edited by

                    @Abdelrahiman-Soliman

                    So we can’t teach you programming here or what “compiling”, “linking”, etc means here. Because this area is about Notepad++. You need to go off and figure those things out. Then come back here and we can tell you more exactly how to do your stuff under Notepad++ control.

                    But once you figure your end out, and realize that @dinkumoil already told you what area of the script to look at, it is all easy so you may not need more from us here.

                    Abdelrahiman SolimanA 1 Reply Last reply Reply Quote 3
                    • Abdelrahiman SolimanA
                      Abdelrahiman Soliman @Alan Kilborn
                      last edited by

                      @Alan-Kilborn

                      Thanks for the preceding helping effort.

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