Derived sources from Flex and Bison
Derived sources from Flex and Bison
- Subject: Derived sources from Flex and Bison
- From: "McLaughlin, Michael P." <email@hidden>
- Date: Wed, 7 Jul 2010 15:07:35 -0400
- Acceptlanguage: en-US
- Thread-topic: Derived sources from Flex and Bison
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