Re: Xcode 7 can't build "Command Line Tool" projects
Re: Xcode 7 can't build "Command Line Tool" projects
- Subject: Re: Xcode 7 can't build "Command Line Tool" projects
- From: Jens Alfke <email@hidden>
- Date: Thu, 14 Jan 2016 11:26:38 -0800
On Jan 14, 2016, at 10:35 AM, Carl Hoefs < email@hidden> wrote:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/ncurses.h:141: /opt/local/include/unctrl.h:60:63: error: unknown type name 'SCREEN' NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype);
(tl;dr: You’ve installed headers for some different version of ncurses in /opt, and the preprocessor is finding some of those headers in addition to the standard ones and getting mixed up because they’re not compatible.)
Looks like you’ve got a header named unctrl.h in /opt/local/include that is in the compiler’s header search path before the SDK header paths, so when the standard ncurses.h includes unctrl.h it gets your local one instead of the standard one. And then it appears that your local one is not compatible — when I look at that header in the Mac OS SDK, there is no declaration like the one quoted above.
Once failed it never recovers and I have to create a new "Command Line Tool" project and copy my source code over to it. That shouldn’t be necessary. Have you tried Clean Build Folder? (Cmd-Shift-Opt-K)
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden