Ever since upgrading to Mac OS Catalina, any time I compile a C++ program, it does not run the first time. The program compiles as expected and the executable is created and appears normal in all regards. However, when I run the program it immediately prints:
-bash: ./a.out: Input/output error
Immediately running the program again works exactly as expected. Below is a screenshot of the flow and the simple program used to generate the errors.
#include <iostream>
int main ()
{
std::cout << "test\n";
return 0;
}
