Search code examples
c++linuxeclipseinclude-patheclipse-kepler

Eclipse CDT not recognizing <iostream>


Now I know this means I need to add my include path somewhere. So I have gone to properties, C/C++ General, Paths and Symbols, GNU C++ and then I have added /usr/include/c++/4.8 (to debug and release), but intellisense still cant detect and it the project doesn't build.

Is my include path the correct one for a standard default installation on Linux and did I enter it in the correct Eclipse setting?

This is on Linux Mint 16 and Eclipse Kepler.


Solution

  • Please make sure that build-essential is installed in your linux

    sudo dpkg --get-selections | grep build-essential | wc -l
    

    if you get 0 as output then install build-essential

    sudo apt-get install build-essential
    

    Then install gcc

    sudo apt-get install gcc