[sldev] Build errors(in XCode 2.5) with indra.y.h
Argent Stonecutter
secret.argent at gmail.com
Sun Sep 30 15:23:09 PDT 2007
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
More information about the SLDev
mailing list