Re: Derived sources from Flex and Bison
Re: Derived sources from Flex and Bison
- Subject: Re: Derived sources from Flex and Bison
- From: "McLaughlin, Michael P." <email@hidden>
- Date: Wed, 7 Jul 2010 16:29:11 -0400
- Acceptlanguage: en-US
- Thread-topic: Derived sources from Flex and Bison
The problem with any solution that specifies a path in a source file is that
there are two DerivedSources folders, depending on whether you are in the
Debug or Release configurations.
On 7/7/10 4:13 PM, "F van der Meeren" <email@hidden> wrote:
> 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
>
>
>
--
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