Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Can't compile C++ inside eclipse(I'm trying to compile a simple "Hello World!" That I made in C++)
Can't compile C++ inside eclipse [message #1456854] Thu, 30 October 2014 20:02 Go to next message
carl johnsons is currently offline carl johnsonsFriend
Messages: 2
Registered: October 2014
Junior Member
I'm trying to compile a simple "Hello World!" That I made in C++
//============================================================================
    // Name        : C++.cpp
    // Version     :
    // Copyright   : All rights reserved.
    // Description : Hello World in C++, Ansi-style
    //============================================================================

    #include <iostream>
    using namespace std;

    int main() {
        cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!


return 0;
}


but I always get: Unresolved inclusion on #include Symbol 'std' could not be resolved Symbol 'cout' could not be resolved Symbol 'endl' could not be resolved

I installing everything it needed (Cygwin64 make, gdb and gcc) What am I missing?

[Updated on: Thu, 06 August 2020 17:48]

Report message to a moderator

Re: Can't compile C++ inside eclipse [message #1458385 is a reply to message #1456854] Sat, 01 November 2014 09:47 Go to previous messageGo to next message
Klaus km is currently offline Klaus kmFriend
Messages: 142
Registered: November 2011
Senior Member
Quote:
but I always get


More details please (your setup, what did you do, detailed error message?).

Quote:
I installing everything it needed


Did you add the compiler-path to environment variable "path"?

Did you check the CDT manuals and CDT-FAQ (see footer)?

regards



Re: Can't compile C++ inside eclipse [message #1458510 is a reply to message #1456854] Sat, 01 November 2014 13:01 Go to previous messageGo to next message
Joost Kraaijeveld is currently offline Joost KraaijeveldFriend
Messages: 273
Registered: July 2009
Senior Member
> but I always get: Unresolved inclusion on #include Symbol 'std' could
> not be resolved Symbol 'cout' could not be resolved Symbol 'endl' could
> not be resolved

Is this an error message from the compiler or from the Eclipse indexer
in the IDE? I suspect the latter and the error only shows in the editor
with a little red bug-like icon. What happens if you just build the
program? Does the compiler complain?


Cheers,

Joost
Re: Can't compile C++ inside eclipse [message #1458756 is a reply to message #1456854] Sat, 01 November 2014 19:27 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
Do you have the C++ compiler?

What does console command

g++ --version

respond?


--

Tauno Voipio
Previous Topic:CDT helping C developers; a new/unusual approach
Next Topic:In need for help on makefile build problem in eclipse
Goto Forum:
  


Current Time: Thu Oct 03 20:26:54 GMT 2024

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

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

Back to the top