Well, I've followed all the tutorials and it's still not working. I don't know where else to turn cause google isn't helping much. Tried figuring it out myself but couldn't...
I did sudo apt-get install building essentials
and sudo apt-get install g++
I then proceeded to take a sample program and enter it
1 2 3 4 5 6 7 8 9
|
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World\n";
return 0;
}
| |
I saved it as a .cpp on my desktop
Next I proceeded to type
g++ HelloWorld.cpp -o HelloWorld
I'm getting this error
g++: error: HelloWorld.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated...
Anyhelp would be appreciated.
Now i've tried letting it know where my file is Desktop/HelloWorld/HelloWorld.cpp -o HelloWorld.o and it just enters the text and gives me a new line to type in. Nothing happened