Xcode with ll and yy source files
Xcode with ll and yy source files
- Subject: Xcode with ll and yy source files
- From: "McLaughlin, Michael P." <email@hidden>
- Date: Tue, 4 May 2010 13:43:07 -0400
- Acceptlanguage: en-US
- Thread-topic: Xcode with ll and yy source files
Using Xcode 3.1.4, I have two very small test projects for lex and yacc
(Flex, Bison). In the first, a standard C tool, the relevant extensions are
.l and .y. This project compiles immediately with no problems.
In the second, a C++ tool, I changed the extensions of the same two files to
.ll and .yy (leaving all other files untouched) expecting Flex and Bison to
generate C++ code. I also used Info/General to tell Xcode that .ll was lex
source and .yy was yacc source.
Briefly, nothing worked. I got more than 30 errors. When I changed the .c
files to .cc, I got more than 50 errors. In both cases, the Build Results
did not show the same yacc and flex build phases as they did in the C tool
project.
Could someone tell me what I left out? I was under the impression that this
should be largely automatic.
It occurred to me that this might require a custom Build phase but that
choice is dimmed in the menu. If a custom Build phase *is* required, are
there any documented examples anywhere showing procedure, syntax, etc.?
Thanks.
--
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