Skip to main content



      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 16:02 Go to next message
Eclipse UserFriend
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 13:48] by Moderator

Re: Can't compile C++ inside eclipse [message #1458385 is a reply to message #1456854] Sat, 01 November 2014 05:47 Go to previous messageGo to next message
Eclipse UserFriend
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 09:01 Go to previous messageGo to next message
Eclipse UserFriend
> 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?
Re: Can't compile C++ inside eclipse [message #1458756 is a reply to message #1456854] Sat, 01 November 2014 15:27 Go to previous message
Eclipse UserFriend
Do you have the C++ compiler?

What does console command

g++ --version

respond?
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: Tue Jul 08 02:22:28 EDT 2025

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

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

Back to the top