Having installed the g++ compiler, I thought I might finally be allowed to do some C++ rather than Python on my Pi. Not so though, as my program does not run. It compiles fine, with no errors, and having checked the file explorer it definitely exists. As a Windows man, i have given the executable the .exe extension. This could possibly be my problem, and if it is I would like to know the extension I should give in Linux. If this has no effect and you are starting to think I might be insane, I should say that:
- I have never used any other OS apart from Windows.
- The
.exefile is described by the pi as aDOS/Windows executable, making me think I should give it a different extension.
Any help to my problem is much appreciated.
(My code is here, although I don't think there is anything wrong with it, so if there isn't please tell me or edit it out)
#include <iostream>
using namespace std;
int main()
{
cout << "Hello" << endl;
return 0;
}