compiler ??

E

emo

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 .Anybody could you please help me all the books which I
had read explain how to do it in windows but none of them in Linux, if
somebody know any good one tell me please.
 
S

Sebastian Wiesner

Once upon a time (Montag, 2. Januar 2006 19:20) emo wrote some very nice
things
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 .Anybody could you please help me all the books which I
had read explain how to do it in windows but none of them in Linux, if
somebody know any good one tell me please.

www.google.com and try searching for "g++ tutorial".

btw, its normally a good sign if g++ produces no output. This means, that
the file was compiled successfully.
 
R

Roberto Waltman

emo said:
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. )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top