[sldev] Build errors(in XCode 2.5) with indra.y.h

Soft soft at lindenlab.com
Mon Oct 1 03:09:54 PDT 2007


In looking for the difference here: Does 2.5 perhaps come with an
updated lex and yacc? With 2.4.1 and 10.4, I've got flex 2.5.4
(ancient!) and Berkeley yacc 1.9 (ancient too). I've been hoping for
an update on the former and a switch to bison for the latter.

On 9/30/07, Michael Miller <1337mail at gmail.com> wrote:
> Hmm...
> Unfortunately, none of the macros seem to be working(Apple's macros
> that is). Isn't there an option somewhere in XCode to force YACC to
> output .h?
>
> -- Mike
>
> On 9/30/07, Argent Stonecutter <secret.argent at gmail.com> wrote:
> >
> > On 30-Sep-2007, at 15:26, Michael Miller wrote:
> >
> > > I found some possible useful information for a patch(at
> > > http://developer.apple.com/releasenotes/DeveloperTools/Xcode/RN-
> > > Xcode/index.html#//apple_ref/doc/uid/TP40001051-DontLinkElementID_2).
> >
> > These variables are not automatically exposed in include files. It
> > says "You may use these build settings to define other settings that
> > affect the build (for example, to have different build folders for
> > different Xcode versions) or to pass as preprocessor values for
> > compilation or Info.plist preprocessing."
> >
> > Try this:
> >
> > #ifdef __APPLE_CC__
> > # if __APPLE_CC__ > 5250
> > #  include AvailabilityMacros.h
> > #  ifdef MAC_OS_X_VERSION_10_5
> > #   define YACC_GENERATES_HPP 1
> > #  endif
> > # endif
> > #endif
> >
> > // something similar for Windows can go here
> >
> > # ifdef YACC_GENERATES_HPP
> > #  include "indra.y.hpp"
> > # else
> > #  include "indra.y.h"
> > # endif
> >
> > _______________________________________________
> > Click here to unsubscribe or manage your list subscription:
> > /index.html
> >
> _______________________________________________
> Click here to unsubscribe or manage your list subscription:
> /index.html
>


More information about the SLDev mailing list