My .cpp program:
#include <iostream>
using namespace std;
int main() {
cout << 5;
return 0;
}
I have Windows 8, and gcc version 3.4.2 (I need this one due to didactics reasons)
When I do at line command: g++ prova.cpp, it returns this error:
g++: Internal error: Aborted (program collect2)
Please submit a full bug report.
What I’m doing wrong? Is it because of Windows 8?
nb. When I do for example: g++ -c prova.cpp it works!
An internal error means that the compiler has a bug.
You could do what the error message says and submit a bug report. However, because you are using such an ancient version of GCC, I expect that would be fruitless.