For some reason, with the command "g ++ -c code.cpp -o r.exe" the application does not work at the output. Yes, and if the file itself is opened with a notepad, then there, apparently, is not what it really should be. + The file size is clearly not what the application should have.
If you use this command "g ++ -s code.cpp", then the output will be a working full executable file.
The question is, what can the command need to add (which is -c -o) and then it will work ?. Maybe there still need to link and something else. The second option is working, but is it correct? I read the documentation, but I didn’t taste it yet.
How correct is it to be? Some whole makefiles write more. Maybe I should? =) Many people propose to use IDE, but I already have the opposite - I want to get off the IDE =)