Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse is unable to find the correct include path(Seems like Eclipse recognises gcc 4.7.2 as gcc 4.7.1)
Eclipse is unable to find the correct include path [message #967583] Thu, 01 November 2012 17:50 Go to next message
Eclipse UserFriend
Hello, when I make a new empty c++ project I get these warnings:

Quote:

Invalid project path: Include path not found (/usr/include/c++/4.7.1/x86_64-unknown-linux-gnu).
Invalid project path: Include path not found (/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/include-fixed).
Invalid project path: Include path not found (/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/include).
Invalid project path: Include path not found (/usr/include/c++/4.7.1/backward).
Invalid project path: Include path not found (/usr/include/c++/4.7.1).


I'm using GCC 4.7.2. Its include paths are missing from the project so when I include <iostream> Eclipse tells me that it cannot be found but the project builds fine.

Why is CDT unable to detect the version of gcc correctly? Any suggestons how to fix it?
Re: Eclipse is unable to find the correct include path [message #971978 is a reply to message #967583] Mon, 05 November 2012 04:05 Go to previous message
Eclipse UserFriend
Open Windows->Preferences and go to page C++->Build_>Settings. Open the tab Discovery and select GCC Builtin Compiler Settings. The click the "Clear Entries" button on the right side. Eclipse will then recheck the include paths (I assumed that the command gcc will call gcc-4.7.2).
Previous Topic:new installation of eclipse-CDT does not understand C++ language
Next Topic:G++ not found
Goto Forum:
  


Current Time: Wed Jul 23 01:37:27 EDT 2025

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

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

Back to the top