Re: Build fails with link errors after editing just one file?
Re: Build fails with link errors after editing just one file?
- Subject: Re: Build fails with link errors after editing just one file?
- From: Fritz Anderson <email@hidden>
- Date: Thu, 19 Dec 2013 13:06:23 -0600
On 19 Dec 2013, at 12:19 PM, Howard Moon <email@hidden> wrote:
> One thing that might be entering into the mix that you probably couldn't address, and might be where the problem lies, unfortunately, is that there is a third-party pre-compiler in play here, which pre-processes all source files when doing a Build, for reasons I can't go into. If that step is the problem, then obviously you won't be able to help me.
I'm rusty on Xcode 3.2…
The next step is to examine the output of the "pre-compiler" and the gcc preprocessor.
Can you examine the tool's output? Such as by running it from the command line?
For the source file that goes into GCC, try adding the -E compiler flag to just that file (in the Detail view, top of the project window? File inspector? Target inspector?). If the precompiler passes flags through to the regular compiler, so much the better.
By the way,
* What files — precompiler source, precompiler product — are in your project?
* Which of them are in your target, and in which phase?
* How are you pointing the precompiler to its source? A script phase? A Build Rule?
This is the second time I've mentioned this today, so something must be going around: Xcode's build system had been touchy about source files that change after it had done its dependency analysis. I remember that was a salient point back at 3.x. I'm not sure how we get around that. (A dependent target?)
Was there a flag back then that enabled/disabled parallel builds? Check the Build Settings, the Target inspector, the Project inspector, and the application preferences. If the option is there, try disabling it. One thing I might imagine is that your preprocessor hadn't completed its work before gcc started working on it. (The dependency analysis should have caught that, but I don't have 100% faith in 3.x's dependency analysis for scripts and build rules.)
— F
--
Fritz Anderson email@hidden
Xcode 5 Start to Finish: Available April 2014 from Addison Wesley
_______________________________________________
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