I recently reinstalled my system, this time with Windows 10 (was on Windows 8.1, winload went bad -- but I digress). I've since been working on recreating my setup, including cygwin. I'm now having issues with cygwin's handling of I/O in C and C++ (using gcc and g++). The following programs both hang my cygwin terminal, without any output:
C code:
#include <stdio.h>
int main(int argc, char ** argv) {
printf("Hello world\n");
return 0;
}
C++ code:
#include <iostream>
using namespace std;
int main() {
cout << "Hello, world!" << endl;
return 0;
}
I need to be able to use g++ locally for a programming assignment, but neither gcc nor g++ are working properly! Help?