I don't have any points, so I can't reply to any of them: Here are some other stackoverflow posts I've found that address similar problems, but which don't seem applicable to me. If I hit F5 in Notepad (or click Run in the Run menu), I can choose the a.exe file that's created from my command line compilation, and it will popup a command window and run that code, so that works fine.īut it seems as though my change directory command isn't working for some reason in NppExec when I try to automate the compile/run. G test.cpp -static-libgcc -static-libstdc Notepad complains that it's missing a library, so I'm using the following flags when I compile: I can get my code to run by first manually compiling it in a command window. In Notepad I used the Plugin Manager to install the NppExec plugin. I then used it to install the mingw32-gcc- package, as well as the mingw32-libz.dll and v packages I downloaded mingw-get-setup.exe from which installed the MinGW Installation Manager. Here's what I've done to get things set up: Which gave the following in the Notepad Console: NPP_SAVE: C:\Users\Bart\Desktop\new delete me\test.cppĬurrent directory: C:\Users\Bart\Desktop\new delete me The system cannot find the file specified.įrom other pages it seemed as though I just needed to paste that code in, that the all caps words aren't meant to be replaced but are variables. Notepad gives me the following information in its Console: NPP_SAVE: C:\Users\Bart\Desktop\new delete me\test.cppĬurrent directory: C:\Program Files (x86)\Notepad ĬreateProcess() failed with error code 2: That was based off the first link I gave: npp_save The code I have now is: npp_saveĬd "$(C:\Users\Bart\Desktop\new delete me)" When I tried to enter compilation/run code into NppExec, it's not working. I was reading and decided to try that, so that I can continue to write code in Notepad and have a shorter compile/run cycle.
0 Comments
Leave a Reply. |