What's the script for compiling and running C/C++ in Notepad++ 7.6.3
-
What’s the script in NPP_EXEC for compiling and running C/C++ in Notepad++ 7.6.3.
-
That greatly depends upon which C/C++ toolset you are using.
-
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.
-
Whats the toolset? I am using Cygwin 64 bit version 3.0.4
-
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. -
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?
-
@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. -
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.
-
Thanks for the preceding helping effort.
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