[R-SIG-Mac] "SIZE_MAX is required for C99" error

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Aug 29 16:05:00 CEST 2012

On 29/08/2012 14:52, Simon Urbanek wrote:
> On Aug 29, 2012, at 9:26 AM, Paul Johnson <paul at askerko.net> wrote:
>> I'm trying to compile a test program, written in Objective-C, that
>> illustrates calls to R. I've installed R.framework for version 2.15.1. I
>> have a MacBook Pro running OS X 10.7.4.
>> I am getting the error "SIZE_MAX is required for C99". Can someone suggest
>> how to remove this error?
> No, unless you provide details - which API are you using (REngine vs C R API), how are you exactly compiling your project? Possibly the actual code to reproduce may be needed as well.

Well, the C99 standard says it is defined in <stdint.h>.  It also says

'C++ implementations should define these macros only when _ 
_STDC_LIMIT_MACROS is defined before <stdint.h> is included.'

just in case you are using a C++ compiler.

The standards are linked from developer.r-project.org, BTW.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-SIG-Mac mailing list