Need help - Unable to build an elementary program [message #267488] |
Tue, 06 January 2009 09:23  |
Eclipse User |
|
|
|
Hi..
I just entered the following elementary program :
#include <iostream>
using namespace std;
int main() {
cout << "\n Hello world ... !!!" << endl;
return 0;
}
The console tab displayed :
**** Build of configuration Debug for project My first ****
**** Internal Builder is used for build ****
Nothing to build for My first
Consequently, Run command indicates "No Binaries Found". The mouse
hovering over iostream, namespace, std, cout and endl says these words are
misspelled - which does not appear to be correct. If I replace the
iostream with iostream.h, then the red wavelet below iostream disappears,
but the problems remain. I believe that as per standard c++ syntax, the <>
around iostream should take care of .h extension, but is it different in
Eclipse environment?
This is my first foray into an Eclipse (prompted by my explorations into
Fedora), hence any advice is appreciated.
System : Fedora 10 Linux (build 134) with Eclipse 3.4. The gcc --version
command returned gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7).
Thanks in anticipation.
|
|
|
Re: Need help - Unable to build an elementary program [message #267491 is a reply to message #267488] |
Tue, 06 January 2009 09:29  |
Eclipse User |
|
|
|
Originally posted by: subs._nospam_consertum.com
What did you call the file? As it is C++, I think it needs a .cpp extension.
Gautam wrote:
> Hi..
>
> I just entered the following elementary program :
>
> #include <iostream>
> using namespace std;
> int main() {
> cout << "\n Hello world ... !!!" << endl;
> return 0;
> }
>
> The console tab displayed :
>
> **** Build of configuration Debug for project My first ****
>
> **** Internal Builder is used for build ****
> Nothing to build for My first
>
> Consequently, Run command indicates "No Binaries Found". The mouse
> hovering over iostream, namespace, std, cout and endl says these words
> are misspelled - which does not appear to be correct. If I replace the
> iostream with iostream.h, then the red wavelet below iostream
> disappears, but the problems remain. I believe that as per standard c++
> syntax, the <> around iostream should take care of .h extension, but is
> it different in Eclipse environment?
>
> This is my first foray into an Eclipse (prompted by my explorations into
> Fedora), hence any advice is appreciated.
>
> System : Fedora 10 Linux (build 134) with Eclipse 3.4. The gcc --version
> command returned gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7).
>
> Thanks in anticipation.
>
--
Derek
|
|
|
Powered by
FUDForum. Page generated in 0.09373 seconds