Getting C++ to compile inside Eclipse

19,055

Do you have a compiler? Quoting eclipse documentation: 'Eclipse IDE for C/C++ Developers does not contain a compiler or debugger; if your system does not have one, you need to download and install one. Please see the Before you begin section of the C/C++ Development User Guide.'

There you can choose and find out how to install a compiler.

Specifically for your unresolved symbols problem, you need to have correct paths set in Project->Properties->C/C++ General->Paths and Symbols/Includes tab, which depends on the compiler you choose to install.

Share:
19,055
IAmYourFaja
Author by

IAmYourFaja

my father is a principal at burgoyne intnl and got me this job programming lisp and development. I aspire to unittesting with a concentration in mobile platforms.

Updated on June 08, 2022

Comments

  • IAmYourFaja
    IAmYourFaja almost 2 years

    Trying to get Eclipse CDT plugin to compile a simple C++ app. I create a new C++ project, and add 1 file (test.cpp) and code it up like a "Hello, world!" example:

    #include <iostream>
    using namespace std;
    
    int main()
    {
        cout << "Hello, world!";
        return 0;
    }
    

    I get highlighted syntax errors on using namespace std and cout, stating (respectively):

    Symbol 'std' could not be resolved Symbol 'cout' could not be resolved

    I'm sure I didn't install CDT with everything it needed to compile/build a full C++ app. Where could I start looking to figure out what I'm missing?