"emo" <em*****@myedinburgh.org> wrote:
Well I cannot display one simple hello world, even if I type g++
hello.cc -o hello. I newbie so when I typed on my terminal there's no
output at all . <...> in Linux.
It is not clear what you mean by "cannot display...".
Does gcc generate an output file? Does this output file
run?, etc.
"g++ hello.cc -o hello" should just compile and link
your program, it will not run it automatically.
Check if the file hello was generated using "ls"
If it is there, the compilation was successful.
Run it by typing "hello<enter>" or "./hello<enter>"
if your path does not include the current directory
(Assuming the period just following the word hello in
your original post was not part of your command.
If it was, use it exactly like that: ./hello. )