Errors Compiling
I am having errors compiling a simple Hello World with g++ in linux.
The program source is written like this
1: #include <iostream.h>
2:
3: int main()
4: {
5: cout << "Hello World!\n";
6: return 0;
7: }
When I compile I get this error:
geoff@Geoffs-Ubuntu-X64:g++ Hello-World.cpp
Hello-World.cpp:1: error: stray ââ¬Ë#ââ¬â¢ in program
Hello-World.cpp:1: error: expected unqualified-id before numeric constant
I wrote the program exactly as told.
|