Lex/Yacc and Cocoa
Lex/Yacc and Cocoa
- Subject: Lex/Yacc and Cocoa
- From: Miguel Arroz <email@hidden>
- Date: Sat, 20 Aug 2005 03:03:53 +0100
Hi!
I'm trying to add a lex and a yacc file to a cocoa project. I
defined a function inside the yacc (call it MyFunction) file so that
objectiveC code may call it and wait for the parsing to finish.
When i try to compile, xCode says it may not link because
MyFunction was not found. After some time, i suspected xCode was not
even compiling the file. Bingo! I added some errors to the C code
inside the yacc and lex fixe. xCode apparently generates the derived
files, calls CompileC for the derived files, but signals no error.
That means it's not even looking and my wrong code. The amazing thing
is that the code is actually in the derived files that, by the
compilation log, xCode actually compiles!
Any idea of what my be happening? Is it OK to add yacc and lex
files to a cocoa project? I included Cocoa/Cocoa.h on both files,
because I use some MutableArrays and Strings inside it. Shouldn't
that be ok!?
Yours
Miguel Arroz
"GUERRA E' PAZ
LIBERDADE E' ESCRAVIDAO
IGNORANCIA E' FORCA" -- 1984
Miguel Arroz
http://www.ipragma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden