• Login
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.5k 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.
  • A
    Abdelrahiman Soliman
    last edited by Mar 25, 2019, 9:44 AM

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

    A 1 Reply Last reply Mar 25, 2019, 12:29 PM Reply Quote 1
    • A
      Alan Kilborn @Abdelrahiman Soliman
      last edited by Mar 25, 2019, 12:29 PM

      @Abdelrahiman-Soliman

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

      A 1 Reply Last reply Mar 25, 2019, 1:05 PM Reply Quote 0
      • D
        dinkumoil
        last edited by dinkumoil Mar 25, 2019, 12:33 PM Mar 25, 2019, 12:32 PM

        @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
        • A
          Abdelrahiman Soliman @Alan Kilborn
          last edited by Mar 25, 2019, 1:05 PM

          @Alan-Kilborn

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

          E A 2 Replies Last reply Mar 25, 2019, 1:13 PM Reply Quote 0
          • E
            Ekopalypse @Abdelrahiman Soliman
            last edited by Mar 25, 2019, 1:13 PM

            @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
            • A
              Alan Kilborn @Abdelrahiman Soliman
              last edited by Mar 25, 2019, 1:16 PM

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

              A 1 Reply Last reply Mar 25, 2019, 1:27 PM Reply Quote 2
              • A
                Abdelrahiman Soliman @Alan Kilborn
                last edited by Mar 25, 2019, 1:27 PM

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

                A 1 Reply Last reply Mar 25, 2019, 1:33 PM Reply Quote 0
                • A
                  Alan Kilborn @Abdelrahiman Soliman
                  last edited by Mar 25, 2019, 1:33 PM

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

                  A 1 Reply Last reply Mar 25, 2019, 2:06 PM Reply Quote 3
                  • A
                    Abdelrahiman Soliman @Alan Kilborn
                    last edited by Mar 25, 2019, 2:06 PM

                    @Alan-Kilborn

                    Thanks for the preceding helping effort.

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