Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to edit built-in include paths?(How to remove include paths which point to old versions of Xcode)
How to edit built-in include paths? [message #1748725] Mon, 28 November 2016 00:03 Go to next message
Bernard Abramson is currently offline Bernard AbramsonFriend
Messages: 15
Registered: July 2009
Junior Member
This is for Eclipse on macOS (and is also true of older versions of OS X).

Every time Apple upgrades the OS and releases a new version of Xcode, I get warning messages referring to Xcode content. For example, when macOS 10.12 replace OS X 10.11 this appeared:

Invalid project path: Include path not found (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include).

I can add the path for the includes for the library in the new version of Xcode but I can't get rid of the old path as it is "built-in" and not editable at:

Project > Properties > C/C++ General > Paths and Symbols > Includes (tab)

Does anyone know how I get rid of these warning permanently without creating a new project and moving all the source files across?
Re: How to edit built-in include paths? [message #1748734 is a reply to message #1748725] Mon, 28 November 2016 07:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32157
Registered: July 2009
Senior Member
It's best to ask about CDT on https://www.eclipse.org/forums/eclipse.tools.cdt

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to edit built-in include paths? [message #1748798 is a reply to message #1748734] Mon, 28 November 2016 18:53 Go to previous message
David VavraFriend
Messages: 1412
Registered: October 2012
Senior Member
I had this problem long ago when I switched to a newer version of GCC.

You should be able to go to Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc.
Select the builtin values on the Entries tab
Push Clear Entries
You need to do this for each compiler.

Collecting the current builtins should happen on the next build
But if needed, go to the Providers tab.
Select the proper builtin provider
Then press Apply

If you have Project --> Properties --> C/C++ Build --> Discovery Options,
you may need to clear the discovered entries for each compiler and configuration.
While you are there, disable auto discovery if necessary.
That's now controlled by Preprocessor Include Paths, Macros etc.

[Updated on: Tue, 29 November 2016 06:00]

Report message to a moderator

Previous Topic:Can't debug existing project.
Next Topic:took a class on this last year but now having problems getting projects to run
Goto Forum:
  


Current Time: Wed Jan 19 10:47:01 GMT 2022

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

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

Back to the top