I'm not even sure I stated the title right. I just started a tutorial series to learn C++. I'm using eclipse and mingw. I typed out this simple code and built the project. I found a typo in what I wanted as my output so I changed it and ran it again. From just adding a colon I get an error warning and it doesn't actually come out in the console. It displays the old phrase I had typed without a colon. Its like the old phrase without the colon is stored and I can't write over it or something.
04:43:23 **** Incremental Build of configuration Debug for project Variables ****
Info: Internal Builder is used for build
g++ -o Variables.exe "src\\Variables.o"
c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../../mingw32/bin/ld.exe: cannot open output file Variables.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
Well if I copy and paste it into a new project it compiles fine. It runs just like the online compiler. The problem is fixing it on the project I have. Is it because I need to terminate the program before running it again? Is there a way to do that?
Apologies. I didn't add the MinGW bin file to my Environment Variables in the Windows settings. Thanks for the help. It was definitely a compiler issue. It works now.