Re: [UPDATE] Lex/Yacc and Cocoa
Re: [UPDATE] Lex/Yacc and Cocoa
- Subject: Re: [UPDATE] Lex/Yacc and Cocoa
- From: Damien Bobillot <email@hidden>
- Date: Sat, 20 Aug 2005 18:35:42 +0200
Sherm Pendley wrote :
On Aug 19, 2005, at 10:15 PM, Miguel Arroz wrote:
I noticed that it I remove the include Cocoa/Cocoa.h directive,
gcc will signal all the expected errors (my errors, and the errors
related to ObjC classes not found). So it's the Cocoa/Cocoa.h
directiva that is causing the problem... i'm lost here!
By default, both Lex & Yacc generate files with a .c extension, so
they're compiled as C instead of Objective-C.
I worked around that by adding two custom build rules to my target:
You may use .lpp or .lm for c++ lex files or Objective-C lex files.
Xcode automaticaly set extension of generated files to .cpp or .m.
--
Damien Bobillot
_______________________________________________
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