Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Updating the compiler(Eclipse also keeps old include directories.)
icon4.gif  Updating the compiler [message #896823] Thu, 19 July 2012 23:08 Go to next message
Mickey Mouse is currently offline Mickey MouseFriend
Messages: 26
Registered: July 2012
Junior Member
Hi all,
I recently updated both Eclipse to CDT 8.1 and MinGW GCC. Doing that, I deleted the old files of the previous GCC installation. Eclipse recognised the new version of GCC but it also keeps in the old projects the inclusion directories of the previous GCC version, as showed in the screenshot. Is there some way to fix that?

Regards
- Mickey
  • Attachment: mingw.jpg
    (Size: 262.21KB, Downloaded 183 times)
Re: Updating the compiler [message #896862 is a reply to message #896823] Fri, 20 July 2012 07:47 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Project Properties->C/C++ build->Discovery options
click the button "Clear discovered entries" (might be necessary for C and C++ and different build_configs)


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Updating the compiler [message #897058 is a reply to message #896862] Sat, 21 July 2012 09:32 Go to previous messageGo to next message
Mickey Mouse is currently offline Mickey MouseFriend
Messages: 26
Registered: July 2012
Junior Member
thank you Axel, it did work.

Regards
- Mickey
Re: Updating the compiler [message #958905 is a reply to message #897058] Fri, 26 October 2012 10:02 Go to previous messageGo to next message
Mickey Mouse is currently offline Mickey MouseFriend
Messages: 26
Registered: July 2012
Junior Member
Hi, the issue came back. At this time I have two versions of gcc installed: 4.6.3 and 4.7.2. Globally I switched to gcc-4.7.3. However includes of the previous version of GCC are still present and Eclipse points to the old version /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.3, while it should be /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.2/. In this case the trick to clear the discovered entries does not work.

Any solution?

regards
-Mickey

[Updated on: Fri, 26 October 2012 10:03]

Report message to a moderator

Re: Updating the compiler [message #962630 is a reply to message #958905] Mon, 29 October 2012 07:55 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
C/C++ build->Discovery options is deprecated (see notice at the bottom of this preference page). You should go to
Project Properties->C/C++ General->Preprocessor Includes

Here you can select the correct compiler version.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:autoreconf problem
Next Topic:Librarys in .pro file (QT)
Goto Forum:
  


Current Time: Tue Apr 16 12:36:17 GMT 2024

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

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

Back to the top