Re: Build phase query--SOLVED
Re: Build phase query--SOLVED
- Subject: Re: Build phase query--SOLVED
- From: Roland King <email@hidden>
- Date: Tue, 02 Sep 2014 05:02:16 +0800
> On 2 Sep 2014, at 12:41 am, Michael McLaughlin <email@hidden> wrote:
>
> This was my mistake. I did the steps below because adding the tab.c file to the target, for the sake of breakpoints, gave a duplicate-symbols linker error.
>
> I had not realized that breakpoints could be set in a project file even though it was not a target file. Of course, this still requires a one-time preliminary compilation of the .y file in order to create a tab.c file so that the latter can be added to the project (even if it is subsequently modified).
>
But why do you get duplicate symbols doing it the way you did it originally? I assume because having xxx.y in the project caused Xcode to create another xxx.c on top of the one you were creating with a rule?
By the way - did you try going to the Build Rules phase of your project and adding a custom rule for .y files, or even just your own single .y file. That should put the whole thing nicely in the workflow without having to add the intermediate.
_______________________________________________
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