tag:blogger.com,1999:blog-5336107939073973034.post6419386680803408895..comments2024-03-16T03:45:44.017-04:00Comments on Dale Swanson: How to compile C++ code in Notepad++ with gcc/g++Dalehttp://www.blogger.com/profile/16971331812573996589noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-5336107939073973034.post-6662666506437286902021-02-15T06:01:58.585-05:002021-02-15T06:01:58.585-05:00What did you do to the code, did you modify it? ha...What did you do to the code, did you modify it? have you saved your source file?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-55821748847642875842021-02-15T06:00:50.315-05:002021-02-15T06:00:50.315-05:00OMG, thank you sooooooooooooooooooooooooooooooo mu...OMG, thank you sooooooooooooooooooooooooooooooo much for this tutorialAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-59651961778549635972020-06-05T06:48:32.439-04:002020-06-05T06:48:32.439-04:00Try saving your file as "Test.cpp"Try saving your file as "Test.cpp"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-68794339974485352172020-04-07T12:27:07.147-04:002020-04-07T12:27:07.147-04:00NPP_SAVE: C:\Program Files (x86)\Notepad++\change....NPP_SAVE: C:\Program Files (x86)\Notepad++\change.log<br />CD: C:\Program Files (x86)\Notepad++<br />Current directory: C:\Program Files (x86)\Notepad++<br />g++ "change.log" -o change -march=native -O3<br />Process started (PID=13900) >>><br />c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot open output file change.exe: Permission denied<br />collect2.exe: error: ld returned 1 exit status<br /><<< Process finished (PID=13900). (Exit code 1)<br />NPP_RUN: change<br />; executing: NPP_RUN change<br />- the specified file was not found <br />I dont understand why this is happening can you give any advice on how to fix this?Anonymoushttps://www.blogger.com/profile/08824025670513644716noreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-76653864913098293102017-05-11T08:06:14.840-04:002017-05-11T08:06:14.840-04:00this does not work error occurred "specified ...this does not work error occurred "specified file was not found"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-49414532490282998562017-02-21T12:10:07.004-05:002017-02-21T12:10:07.004-05:00my c program process wont end. i manually have to ...my c program process wont end. i manually have to open task manger every time to end the process. could you help me so that after final output the program process should terminate..<br /><br />such as after every final output it should show <br />================READY========<br /><br />which it does not. please help!!vikramhttps://www.blogger.com/profile/11140372999255345364noreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-2593871202090020182017-02-21T12:07:40.578-05:002017-02-21T12:07:40.578-05:00This comment has been removed by the author.vikramhttps://www.blogger.com/profile/11140372999255345364noreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-10624660606121459382016-11-11T03:56:29.949-05:002016-11-11T03:56:29.949-05:00I have the same issue, not really sure what's ...I have the same issue, not really sure what's causing it though :cAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-51882570659728479582016-05-28T13:59:58.150-04:002016-05-28T13:59:58.150-04:00I am getting the following error
g++ "new 1.c...I am getting the following error<br />g++ "new 1.c" -o new 1 -march=native -O3<br />CreateProcess() failed with error code 2:<br />The system cannot find the file specified.shivarajhttps://www.blogger.com/profile/02225914471539747636noreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-86587578682454883882015-11-18T06:49:17.071-05:002015-11-18T06:49:17.071-05:00Heh, running Windows10 and I get:
c:\MinGW\bin\g+...Heh, running Windows10 and I get:<br /><br />c:\MinGW\bin\g++.exe -g "Test.h" -o Test.exe<br />Process started >>><br /><<< Process finished. (Exit code 0)<br />NPP_RUN: Test<br />- the operating system denied access to the specified file<br />================ READY ================<br /><br />When using your script. This is the furthest that i've gotten out of any of the other scripts. I actually have an executable now. Unfortunately, the OS says no bueno.Carbon Softwarehttps://www.blogger.com/profile/01154763944591538578noreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-65861350950999988512015-10-02T16:34:16.140-04:002015-10-02T16:34:16.140-04:00The provided script didn't work for me. I use...The provided script didn't work for me. I use:<br /><br />NPP_SAVE<br />set GWDIR=c:\MinGW<br />cd $(CURRENT_DIRECTORY)<br />$(GWDIR)\bin\g++.exe -g "$(FILE_NAME)" -o $(NAME_PART).exe<br /><br />To run I use:<br />NPP_RUN pause.bat $(NAME_PART).exe <br /><br />Where "pause.bat" is a batch file I have in the local folder with the following in in to add a pause after the program executes:<br />%1<br />pause()Joshhttps://www.blogger.com/profile/13966754297292899026noreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-59887696880267696432015-07-05T02:34:41.872-04:002015-07-05T02:34:41.872-04:00to see output in NppExec console use this:
npp_sav...to see output in NppExec console use this:<br />npp_save<br />cd "$(CURRENT_DIRECTORY)"<br />g++ "$(FILE_NAME)" -o $(NAME_PART) -march=native -O3<br /> $(NAME_PART)<br /><br />for java program use this:<br />npp_save<br />cd $(CURRENT_DIRECTORY)<br />javac $(FILE_NAME)<br />java $(NAME_PART)Gouravhttps://www.blogger.com/profile/07650612181243410422noreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-57938100805552779412015-03-22T06:30:32.739-04:002015-03-22T06:30:32.739-04:00To prevent window from closing after execution in ...To prevent window from closing after execution in cmd, add "&& pause"<br /><br />SET g++ = C:\Program Files (x86)\CodeBlocks\MinGW\bin\g++.exe<br />NPP_SAVE<br />CD $(CURRENT_DIRECTORY)<br />"$(g++)" "$(FILE_NAME)" -o "$(NAME_PART)" -march=native -O3<br />NPP_RUN cmd /C "$(NAME_PART)" && pause<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-85771268584958975832015-02-24T05:35:54.518-05:002015-02-24T05:35:54.518-05:00Thank you. I also have codeblock so I change the s...Thank you. I also have codeblock so I change the script to:<br /><br />NPP_SAVE<br />CD $(CURRENT_DIRECTORY)<br />C:\Program Files (x86)\CodeBlocks\MinGW\bin\g++.exe "$(FILE_NAME)" -o $(NAME_PART) -march=native -O3<br />NPP_RUN $(NAME_PART)<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-19458942615795068552014-07-04T15:16:04.912-04:002014-07-04T15:16:04.912-04:00Great! Thank you!Great! Thank you!Anonymoushttps://www.blogger.com/profile/10828235042268858848noreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-57157962253842034112013-07-22T15:45:31.783-04:002013-07-22T15:45:31.783-04:00NPP_SAVE: C:\Users\Rishi\cpp\hw.cpp
CD: C:\Users\R...NPP_SAVE: C:\Users\Rishi\cpp\hw.cpp<br />CD: C:\Users\Rishi\cpp<br />Current directory: C:\Users\Rishi\cpp<br />g++ "hw.cpp" -o hw -march=native -O3<br />Process started >>><br />cc1plus.exe: bad value (native) for -march= switch<br /><<< Process finished. (Exit code 1)<br />NPP_RUN: hw<br />- the specified file was not found<br /><br />cold you please tell me how do i deal with the above error?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-83927562878143154022013-07-10T22:19:13.471-04:002013-07-10T22:19:13.471-04:00Oh, let me add. There is no compiled executable al...Oh, let me add. There is no compiled executable also.Anonymoushttps://www.blogger.com/profile/06199009188715385717noreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-7118792565063737422013-07-10T22:17:14.250-04:002013-07-10T22:17:14.250-04:00Works on one machine but not another.
NPP_SAVE: C...Works on one machine but not another.<br /><br />NPP_SAVE: C:\Users\sid\Google Drive\School\Computer Logic\SortingBenchmarks.cpp<br />CD: C:\MinGW\bin<br />Current directory: C:\MinGW\bin<br />g++ "C:\Users\sid\Google Drive\School\Computer Logic\SortingBenchmarks.cpp" -o SortingBenchmarks -march=native -O3<br />Process started >>><br />g++: error: CreateProcess: No such file or directory<br /><<< Process finished. (Exit code 1)<br />NPP_RUN: SortingBenchmarks<br />- the specified file was not found<br /><br />When I run it straight from the console it compiles with no issues.Anonymoushttps://www.blogger.com/profile/06199009188715385717noreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-38139228007099581052013-06-17T11:26:29.634-04:002013-06-17T11:26:29.634-04:00If you get the error "CreateProcess() failed ...If you get the error "CreateProcess() failed with error code 2" but g++ works from cmd, try restarting notepad++Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-2364178014646547692012-09-12T11:34:25.200-04:002012-09-12T11:34:25.200-04:00Hum... I get an error code after executing the cod...Hum... I get an error code after executing the code... :(<br /><br />NPP_SAVE: C:\CODIGO\yuyu.cpp<br />CD: C:\CODIGO<br />Current directory: C:\CODIGO<br />g++ "yuyu.cpp" -o yuyu -march=native -O3<br />CreateProcess() failed with error code 2:<br />El sistema no puede encontrar el archivo especificado.<br /><br />NPP_RUN: yuyuCassandrahttps://www.blogger.com/profile/04786308521585879721noreply@blogger.comtag:blogger.com,1999:blog-5336107939073973034.post-32670526952348857022012-09-12T11:02:01.652-04:002012-09-12T11:02:01.652-04:00It was very helpful.It was very helpful.Cassandrahttps://www.blogger.com/profile/04786308521585879721noreply@blogger.com