• 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
Problem with yacc files in native targets solved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with yacc files in native targets solved


  • Subject: Problem with yacc files in native targets solved
  • From: Frederik Seiffert <email@hidden>
  • Date: Wed, 05 Nov 2003 16:01:01 +0100
  • Organization: equinux - http://www.equinux.com

Hi!

Some of you might have noticed that XCode 1.0 and 1.0.1 isn't able to compile .y files with Yacc in native targets. I've now found a workaround for this:

- show info for your native target and goto tab "Rules"

- add a new rule with the "+" button for processing Yacc source files

- use the following custom script for compilation:
cd "$(DERIVED_FILE_DIR)/Yacc" && /usr/bin/yacc -d "$(INPUT_FILE_PATH)"

- add the following files as output files:
$(DERIVED_FILE_DIR)/Yacc/y.tab.h
$(DERIVED_FILE_DIR)/Yacc/y.tab.c

That's it! You should now be able to compile Yacc files. :)

Frederik
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Where do values actually come from in a build?
  • Next by Date: Re: xcodebuild seems to be ignoring parameters
  • Previous by thread: Re: Where do values actually come from in a build?
  • Next by thread: cross development sdk's
  • Index(es):
    • Date
    • Thread