<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Run C++ within notepad++]]></title><description><![CDATA[<p dir="auto">Hello learned friends.  I am called Ken.</p>
<p dir="auto">Iam running windows 10<br />
I have installed MinGW (Directory is C:\MinGW\bin).<br />
I have also installed notepad++ (directory is, C:\Program Files (x86)\Notepad++ )<br />
i have installed the NppExec plugin for Notepad++.</p>
<p dir="auto">i would like to run c++ code within notepad++ but i have failed.</p>
<p dir="auto">any one to help me out;</p>
<p dir="auto">i have tried to use the script below but it has failed.</p>
<p dir="auto">npp_save<br />
cd $(CURRENT_DIRECTORY)<br />
C:\MinGW\bin\g++<br />
cmd /c “$(CURRENT_DIRECTORY) \a.exe”</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18310/run-c-within-notepad</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 22:50:37 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18310.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Oct 2019 08:47:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Run C++ within notepad++ on Tue, 21 Sep 2021 19:55:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/william-busigo" aria-label="Profile: william-busigo">@<bdi>william-busigo</bdi></a> ,</p>
<p dir="auto">This discussion was relying on the fact that everyone involved had the NppExec plugin installed.  Everything that has been said in this discussion assumed that as a given.</p>
<p dir="auto">I think before asking any more questions, you need to read and understand our FAQ on <a href="https://community.notepad-plus-plus.org/topic/20688/faq-desk-how-do-i-use-notepad-to-compile-my-source-code-or-convert-my-text">“how do I use Notepad++ to compile my source code”</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69902</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69902</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 21 Sep 2021 19:55:36 GMT</pubDate></item><item><title><![CDATA[Reply to Run C++ within notepad++ on Tue, 21 Sep 2021 18:58:09 GMT]]></title><description><![CDATA[<p dir="auto">#include namespace std;<br />
int main()<br />
(<br />
cout &lt;&lt; “Welcome to GFG”;</p>
<p dir="auto">return 0;</p>
<p dir="auto">}</p>
<p dir="auto">This file is saved in my Documents Folder with the .cpp extension but when I hit the run button a window opens and tells me to choose “The Program to Run” with a run, save or cancel option instead of just running the program.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69901</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69901</guid><dc:creator><![CDATA[william busigo]]></dc:creator><pubDate>Tue, 21 Sep 2021 18:58:09 GMT</pubDate></item><item><title><![CDATA[Reply to Run C++ within notepad++ on Tue, 21 Sep 2021 18:16:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/william-busigo" aria-label="Profile: william-busigo">@<bdi>william-busigo</bdi></a> ,</p>
<blockquote>
<p dir="auto">where is somewhere valid?</p>
</blockquote>
<p dir="auto">Onto your filesystem (HDD/SSD, like the c: drive or d: drive, or onto a USB stick, or wherever).</p>
<p dir="auto">My point was that the g++ error message seemed to say that it couldn’t find the file <code>new</code>.  That tells me two things:</p>
<p dir="auto">First, because it says <code>new</code>, I am assuming that it’s actually <code>new 1</code> or similar, which is what Notepad++ calls tabs that haven’t ever been saved, anywhere.  You have to save the file (presumably to <code>something.cpp</code> or similar) before you can run it through a compiler.</p>
<p dir="auto">Second, because the error message says <code>new</code> rather than <code>new 1</code>, I am assuming you <em>don’t</em> actually have the script(s) mentioned above, because you probably don’t have the quotes around the name variables like <a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a>  and <a class="plugin-mentions-user plugin-mentions-a" href="/user/mashrafi-dipto" aria-label="Profile: mashrafi-dipto">@<bdi>mashrafi-dipto</bdi></a> showed above.</p>
<p dir="auto">So make sure you save the file, and give it a meaningful name.  Then show us the NppExec script that you are actually running – when you paste it into the forum, make sure to highlight the whole script and hit the <code>&lt;/&gt;</code> button, so that it will be surrounded in <code>```</code> characters on a line before and after your script in the edit window, and the PREVIEW window will show it in a black box, like <a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a>’s example above<br />
<img src="https://i.imgur.com/KOsSLNe.png" alt="" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/69899</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69899</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 21 Sep 2021 18:16:15 GMT</pubDate></item><item><title><![CDATA[Reply to Run C++ within notepad++ on Tue, 21 Sep 2021 17:54:37 GMT]]></title><description><![CDATA[<p dir="auto">where is somewhere valid?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69897</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69897</guid><dc:creator><![CDATA[william busigo]]></dc:creator><pubDate>Tue, 21 Sep 2021 17:54:37 GMT</pubDate></item><item><title><![CDATA[Reply to Run C++ within notepad++ on Tue, 21 Sep 2021 17:38:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/william-busigo" aria-label="Profile: william-busigo">@<bdi>william-busigo</bdi></a> ,</p>
<p dir="auto">you have to give the file a name and save it somewhere valid.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69894</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69894</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 21 Sep 2021 17:38:51 GMT</pubDate></item><item><title><![CDATA[Reply to Run C++ within notepad++ on Tue, 21 Sep 2021 17:33:43 GMT]]></title><description><![CDATA[<p dir="auto">g++: error: no such file or directory<br />
‘new’ is not recognized as an internal or external command, operable program or batch file.<br />
Exit code 1</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69893</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69893</guid><dc:creator><![CDATA[william busigo]]></dc:creator><pubDate>Tue, 21 Sep 2021 17:33:43 GMT</pubDate></item><item><title><![CDATA[Reply to Run C++ within notepad++ on Fri, 04 Dec 2020 11:02:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kenn_ug" aria-label="Profile: kenn_ug">@<bdi>kenn_ug</bdi></a> you can use this<br />
npp_save<br />
cd $(CURRENT_DIRECTORY)<br />
C:\MinGW\bin\g++ “$(FULL_CURRENT_PATH)” -g -o “$(name_part)”<br />
cmd /c $(name_part)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60446</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60446</guid><dc:creator><![CDATA[mashrafi dipto]]></dc:creator><pubDate>Fri, 04 Dec 2020 11:02:40 GMT</pubDate></item><item><title><![CDATA[Reply to Run C++ within notepad++ on Tue, 01 Oct 2019 14:33:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kenn_ug" aria-label="Profile: kenn_ug">@<bdi>kenn_ug</bdi></a> said in <a href="/post/47418">Run C++ within notepad++</a>:</p>
<blockquote>
<p dir="auto">npp_save<br />
cd $(CURRENT_DIRECTORY)<br />
C:\MinGW\bin\g++<br />
cmd /c “$(CURRENT_DIRECTORY) \a.exe”</p>
</blockquote>
<p dir="auto">Seems like you <em>may</em> just be missing the file to compile:</p>
<pre><code>npp_save
cd $(CURRENT_DIRECTORY)
C:\MinGW\bin\g++ "$(FULL_CURRENT_PATH)"
cmd /c “$(CURRENT_DIRECTORY) \a.exe”
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/47444</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47444</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Tue, 01 Oct 2019 14:33:27 GMT</pubDate></item><item><title><![CDATA[Reply to Run C++ within notepad++ on Tue, 01 Oct 2019 12:55:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kenn_ug" aria-label="Profile: kenn_ug">@<bdi>kenn_ug</bdi></a> said in <a href="/post/47420">Run C++ within notepad++</a>:</p>
<blockquote>
<p dir="auto">kindly help me out. am trying but can’t figure it out</p>
</blockquote>
<p dir="auto">How would you do it from the command-line, without Notepad++?  Ie, how would you compile the program if you used some other text editor for the source code, or had just downloaded it?</p>
<p dir="auto">This is not a compiler forum, or a programming forum.  If you tell us how you would compile and run the program without Notepad++, we can help you translate that into how to do it inside Notepad++.  But without that, you’re asking us <a href="https://community.notepad-plus-plus.org/topic/15958/faq-desk-you-ve-asked-your-question-in-the-wrong-place">why you cannot bake your cookies</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47430</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47430</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 01 Oct 2019 12:55:10 GMT</pubDate></item><item><title><![CDATA[Reply to Run C++ within notepad++ on Tue, 01 Oct 2019 09:28:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dinkumoil" aria-label="Profile: dinkumoil">@<bdi>dinkumoil</bdi></a></p>
<p dir="auto">kindly help me out. am trying but can’t figure it out</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47420</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47420</guid><dc:creator><![CDATA[kenn_ug]]></dc:creator><pubDate>Tue, 01 Oct 2019 09:28:08 GMT</pubDate></item><item><title><![CDATA[Reply to Run C++ within notepad++ on Tue, 01 Oct 2019 09:09:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kenn_ug" aria-label="Profile: kenn_ug">@<bdi>kenn_ug</bdi></a></p>
<p dir="auto">You don’t provide any arguments to <em>g++.exe</em>, the command line even lacks the path to your source file. How should the compiler know what to do?</p>
<p dir="auto">Go figure out the required compiler options for your project and read thoroughly the documentation of <em>NppExec</em>, there you can find all information needed.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/47419</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/47419</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Tue, 01 Oct 2019 09:09:14 GMT</pubDate></item></channel></rss>