So I am trying to use exit(1) but every time I compile it through g++ I get an error that exit(1) "wasn't declared in the scope". Help me understand why, because I included, #include <cstdlib> for exit(1) to go through & be declared, for the purpose of terminating the program. This is all done on unix using SSH on my MAC.
@L B:He did (see line 5).
I know this problem. I'm developing software for lots of C++/Posix systems since about 25 years. And sometimes (often ?) those <cxyz> headers representing former <xyz.h> headers don't work properly. As a result I decided to avoid using <cxyz> headers.