Skip to main content



      Home
Home » Newcomers » Newcomers » Need help - Unable to build an elementary program
Need help - Unable to build an elementary program [message #267488] Tue, 06 January 2009 09:23 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Getting JPA to work in Eclipse
Next Topic:Set the editor default
Goto Forum:
  


Current Time: Thu Jul 17 22:20:46 EDT 2025

Powered by FUDForum. Page generated in 0.09373 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top