• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [UPDATE] Lex/Yacc and Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • What To Do w/ ADC Ref Library Update
      • From: Nathan Brazil <email@hidden>
References: 
 >Lex/Yacc and Cocoa (From: Miguel Arroz <email@hidden>)
 >[UPDATE] Lex/Yacc and Cocoa (From: Miguel Arroz <email@hidden>)
 >Re: [UPDATE] Lex/Yacc and Cocoa (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: NSTableView not letting me double-click rows always?
  • Next by Date: Re: using bless to change boot device
  • Previous by thread: Re: [UPDATE] Lex/Yacc and Cocoa
  • Next by thread: What To Do w/ ADC Ref Library Update
  • Index(es):
    • Date
    • Thread