Re: Derived sources from Flex and Bison
Re: Derived sources from Flex and Bison
- Subject: Re: Derived sources from Flex and Bison
- From: F van der Meeren <email@hidden>
- Date: Wed, 7 Jul 2010 22:13:17 +0200
Just add a "Þfines MyPath/something.h" before the first %%
And bison will put the header in your path.
Filip
On 07 Jul 2010, at 21:07, McLaughlin, Michael P. wrote:
> With Xcode 3.1.4 (Leopard), I have a test Cocoa app containing, inter alia,
> a Flex (.l) file and a Bison (.y) file. It gets a string (expression) from
> an NSTextField, parses and evaluates it.
>
> The project compiles with one glitch. A derived header, y.tab.h, is created
> in the DerivedSources folder deep within the Build folder yet it is a
> required header in other source files.
>
> If I leave y.tab.h where it is built, the project does not find it to use as
> a normal header. I have to partially build the project then manually copy
> y.tab.h to the project level and then add it manually to the project from
> there. Once that is done, everything builds correctly and the program runs
> without error.
>
> It seems to me that I must be doing something wrong. If the project knows
> enough to create y.tab.h, shouldn't if also know when it is a project header
> without my having to copy it? It has no trouble finding the C sources
> created by Flex and Bison (e.g., y.tab.c) and they are in the same
> DerivedSources folder.
>
> Am I missing something?
>
> TIA.
>
> --
> Mike McLaughlin
>
> _______________________________________________
> 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
_______________________________________________
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