Hi!
I have recently started using linux and I was recommended gcc compiler.
I have written a basic program just to see if it works. And it doesn't.
I am trying to compile it with Terminal, and with the following command :
gcc ~/Desktop/C++/test.cpp -o testing)
My program it responds with:
/home/john/Desktop/C++/test.cpp:1:1: error: 'include' does not name a type
If on the other hand I write
gcc test.cpp -o testing
the result is:
gcc: test.cpp: No such file or directory
gcc: no input files
I am wondering what that means and how i could fix it.
Here is the code of my simple program
#include<iostream>
using namespace std;
int main()
{
string name;
cout<<"Whats your name?";
cin >> name;
cout << "Hello"<< name;
}
Thanks for all of your responses. I hope you help me fix this problem soon .
Until then I should use MS Windows i guess ... :S