 <p>I had similar problem and it is solved by </p> <ol> <li><p>Installing g++ The GNU C++ complier using ubuntu software centre and </p></li> <li><p>Changing in -</p></li> </ol> <p>Window -> Preferences -> C/C++ -> Build -> Settings -> Discovery -> CDT GCC Build in Complier Settings [Shared]</p> <pre><code>From: ${COMMAND} -E -P -v -dD "${INPUTS}" To : /usr/bin/${COMMAND} -E -P -v -dD "${INPUTS}" </code></pre> <p>I hope it helps.</p>