I tried to compile a .cpp into an .exe with two different ways, the first (following a tutorial) was by going to the files location (C:\Users\me\Desktop\CPP Files) and typing cmd and opening a prompt then typing: g++ main.cpp main.exe (i also tried the other way around, with the .exe first) and got this error: 'g++' is not recognized as an internal or external command, operable program or batch file.
on the cygwin prompt i got this error: cc1plus: fatal error: klog_main.cpp: No such file or directory compilation terminated.
How can i fix this/what am i doing wrong?