Eclipse for C/C++ ?

Here:

linuxnohost:~$ g++
g++: fatal error: no input files
compilation terminated.

So everything seems to be fine, except for the two errors I told you about. Why does eclipse fail to compile that Hello World program?