<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mv="http://macVmlSchemaUri" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Arial;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"Yu Mincho";
        panose-1:2 2 4 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:595.0pt 842.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks for that, adding the define mentioned in the answer (__STDC_LIMIT_MACROS) solved the issue!  Now at least I know there is an easy fix, and I can look into other things as well.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:4.5pt"><b><span style="font-size:9.0pt;font-family:Arial;color:#333333">Jim Borden</span></b><span style="font-size:9.0pt;font-family:Arial;color:#333333"><br>
Software Engineer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman""><img width="160" height="40" id="_x0000_i1026" src="cid:image001.png@01D2F183.0C00E240" alt="hbase Logo"></span><span style="font-family:"Times New Roman""><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><i><span style="font-size:9.0pt;font-family:Arial;color:#333333">jim.borden@couchbase.com</span></i><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">CMake <cmake-bounces@cmake.org> on behalf of Christopher Broadbent <chris@macolighting.com><br>
<b>Date: </b>Friday, June 30, 2017 8:36<br>
<b>To: </b>"cmake@cmake.org" <cmake@cmake.org><br>
<b>Subject: </b>Re: [CMake] Question about strange Android behavior<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman""><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal">We hit this on android too, and moved across to using std::numeric_limits in our code. The root cause for us was
<br>
differences between the C standard libraries on android, and the one we were running on Linux.<br>
<br>
<a href="https://stackoverflow.com/questions/986426/what-do-stdc-limit-macros-and-stdc-constant-macros-mean">https://stackoverflow.com/questions/986426/what-do-stdc-limit-macros-and-stdc-constant-macros-mean</a> might give<br>
you a fix. To investigate, I'd want to run both builds with "make VERBOSE=1" and compare the commands that cmake
<br>
is generating for the failing files, just in case there is something more severe happening behind the scenes.<br>
<br>
On 30/06/2017 09:13, Jim Borden wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:11.0pt">I’m not sure what the state of Android support is (there is the documentation on the CMake page, and then there is the documentation on the Android page which is different) but I wanted to point out a weird
 difference in behavior between CMake 3.7.2 and CMake 3.8.2 and ask about it.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">My project compiles fine with CMake 3.7.2, but when I use 3.8.2 I get compiler errors to the tune of:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">error: use of undeclared identifier 'UINT64_MAX' (and other such nonsense about similar types)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">My invocation of CMake is as follows:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=16 -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a -DCMAKE_ANDROID_STL_TYPE=c++_static</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Does anyone know why this would happen?</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:4.5pt"><b><span style="font-size:9.0pt;font-family:Arial;color:#333333">Jim Borden</span></b><span style="font-size:9.0pt;font-family:Arial;color:#333333"><br>
Software Engineer</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman""><img border="0" width="160" height="40" id="_x0000_i1025" src="cid:image002.png@01D2F183.0C00E240" alt="base Logo"></span><o:p></o:p></p>
<p class="MsoNormal"><i><span style="font-size:9.0pt;font-family:Arial;color:#333333"><a href="mailto:jim.borden@couchbase.com">jim.borden@couchbase.com</a></span></i><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman""><br>
<br>
<o:p></o:p></span></p>
</blockquote>
<p><o:p> </o:p></p>
</div>
</body>
</html>