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

Michael Miller 1337mail at gmail.com
Sun Sep 30 17:39:22 PDT 2007


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
>


More information about the SLDev mailing list