Search code examples
c++eclipsegcceclipse-cdt

Eclipse includes not updating after gcc update


I recently updated my GCC version from gcc4.2 to gcc4.8 on mac os x 10.6. However, the includes tab under my C++ project in eclipse still list /usr/include/c++/4.2.1, /usr/include/c++/4.2.1/backward and /usr/include/c++/4.2.1/x86_64-apple-darwin-10. How do I update my includes to use the newer gcc4.8 versions?


Solution

  • I met the same problem before. Here's my solution.

    Goto your eclipse workspace folder, delete .metadata folder and restart eclipse.

    No idea if there are any side effect. Take your own risk about it.