Trying to learn the basics of C++ (
https://www.w3schools.com/cpp/cpp_getstarted.asp) - I did this successfully:
http://www.codeblocks.org/downloads/26 Download the mingw-setup.exe file, which will install the text editor with a compiler.
Instructed next to startup Codeblocks (using 17.12) and do File>New>Empty File – Save given code as myfirstprogram.cpp (in Desktop\C++)
Then Build>Build and Run => nothing happens.
... I went to Settings>Compiler and replaced 'no compiler' with GNU GCC Compiler. Tried Build. In Build Log:
-------------- Build file: "no target" in "no project" (compiler: unknown)---------------
mingw32-g++.exe -c C:\Users\sthay\Desktop\C++\myfirstprogram.cpp -o C:\Users\sthay\Desktop\C++\myfirstprogram.o
Execution of 'mingw32-g++.exe -c C:\Users\sthay\Desktop\C++\myfirstprogram.cpp -o C:\Users\sthay\Desktop\C++\myfirstprogram.o' in 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\CodeBlocks' failed.