Boost C++ Libraries: Ticket #13274: boost.filesystem compile problem on Android https://svn.boost.org/trac10/ticket/13274 <p> Hello, in attempt to build boost for android with more or less reasonable strict settings (-Werror) I uncovered some bugs which I cannot report on github because these projects have Issues disabled. </p> <pre class="wiki">/usr/local/opt/android-ndk/android-ndk-r16-beta1//sources/android/support/include/stdio.h:36:25: error: invalid token at start of a p reprocessor expression #if __USE_FILE_OFFSET64 &amp;&amp; __ANDROID_API__ &lt; __ANDROID_API_N__ </pre><p> This happens because filesystem defines a "harmless" macro: </p> <pre class="wiki">libs/filesystem/src/operations.cpp:18:9: warning: '__USE_FILE_OFFSET64' macro redefined [-Wmacro-redefined] #define __USE_FILE_OFFSET64 // but that is harmless on Windows and on POSIX ^ </pre><p> While this check was <code>#if defined(__USE_FILE_OFFSET64)</code> in previous android versions, it seems to have changed when they introduced unified headers. It's probably more "harmless" to define an integer value in boost.filesystem rather than persuade Google to fix their code. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13274 Trac 1.4.3 Berkus <berkus@…> Wed, 25 Oct 2017 09:03:53 GMT <link>https://svn.boost.org/trac10/ticket/13274#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13274#comment:1</guid> <description> <p> This is using <code>clang</code> toolchain on <code>Android NDK r16 beta1</code>. </p> <p> <a class="ext-link" href="https://github.com/twilio/twilio-boost-build/blob/android-ndk-16/boost.sh#L526"><span class="icon">​</span>Reference to user-config.jam for the build</a> </p> </description> <category>Ticket</category> </item> <item> <author>Berkus <berkus@…></author> <pubDate>Wed, 25 Oct 2017 13:04:20 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13274#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13274#comment:2</guid> <description> <p> Xref <a class="ext-link" href="https://github.com/boostorg/filesystem/issues/56"><span class="icon">​</span>https://github.com/boostorg/filesystem/issues/56</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 01 Mar 2018 20:46:10 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13274#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13274#comment:3</guid> <description> <p> this bug can be closed: the released NDK added the missing defined() last year. </p> </description> <category>Ticket</category> </item> </channel> </rss>