Re: Why are my Issue Navigator file names all red but the project builds OK with only warnings? Bug report filed SOLVED
Re: Why are my Issue Navigator file names all red but the project builds OK with only warnings? Bug report filed SOLVED
- Subject: Re: Why are my Issue Navigator file names all red but the project builds OK with only warnings? Bug report filed SOLVED
- From: Peter Teeson <email@hidden>
- Date: Tue, 01 Apr 2014 12:24:12 -0400
On 2014-03-27, at 12:21 PM, Peter Teeson <email@hidden> wrote:
> Bug report# 1644472
Thanks to the Apple engineers this has been solved/explained in response to this bug report.
Of course it was my fault but the successful build blurred my vision as to what went wrong.
For the record here is the answer to the bug report which is now closed.
> This is a follow-up to Bug ID# 16444722.
> Engineering has determined that this issue behaves as intended from Xcode's standpoint based on the following information:
> It looks like the issues being produced by the Makefile are like this:
>
> Workspace.cc:223:11: warning: 289 enumeration values not handled in switch: 'UNI_ASCII_NUL', 'UNI_ASCII_SOH', 'UNI_ASCII_STX'... [-Wswitch]
> switch(av_0)
> ^
> 1 warning generated.
>
> Since the warning is issued with a relative path, "Workspace.cc" is being evaluated relative to the directory set in the GNUAPL target, ".../GNUAPL/apl-1.2/".
> However, that's not the actual location of Workspace.cc (it's located at ".../GNUAPL/apl-1.2/src/Workspace.cc"), and as a result the filenames appear in red in the Issue navigator.
> The Makefile should be updated to either pass absolute paths to the compiler, or all relative paths passed to the compiler should be relative to the GNUAPL target's directory.
I had un-tar'd the GNUAPL project, a typical *nix style one using make files, to my usual projects location:
/Volumes/Data/Development/MyProjects/GNUAPL/apl-1.2/
which I then set as the target directory in Xcode.
However since the typical structure for this kind of project is to place source in a sub-folder, conventionally labelled src,
the correct directory should be:
/Volumes/Data/Development/MyProjects/GNUAPL/apl-1.2/src
Made the correction, cleaned and built and all is well in Glockamora.
As I said the successful build and execution blurred my vision.
Live and learn (or die).
Peter
_______________________________________________
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