Boost C++ Libraries: Ticket #11744: Preprocessor error ./boost/atomic/detail/int_sizes.hpp:107:55: error: missing binary operator before token "(" https://svn.boost.org/trac10/ticket/11744 <p> Trying to compile Boost atomic 1.59 with g++ version 4.1.2, gave me this error: </p> <p> ./boost/atomic/detail/int_sizes.hpp:107:55: error: missing binary operator before token "(" ./boost/atomic/detail/int_sizes.hpp:137:2: error: #error Boost.Atomic: Failed to determine builtin integer sizes, the target platform is not supported. Please, report to the developers. </p> <p> This is the line it is complaining about: #elif (BOOST_ATOMIC_DETAIL_ULLONG_MAX + 0) == UINT64_C(0xffffffffffffffff) </p> <p> Is there an issue with the cast. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11744 Trac 1.4.3 anonymous Thu, 22 Oct 2015 14:01:26 GMT <link>https://svn.boost.org/trac10/ticket/11744#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11744#comment:1</guid> <description> <p> My platform is RH Linux 32 bit </p> <blockquote> <p> uname -a </p> </blockquote> <p> Linux linux51-dev03.comverse-in.com 2.6.18-53.el5PAE <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1" title="#1: Bugs: boost.build causes ftjam to segfault (closed: Wont Fix)">#1</a> SMP Wed Oct 10 16:48:18 EDT 2007 i686 </p> <blockquote> <p> cat /etc/redhat-release </p> </blockquote> <p> Red Hat Enterprise Linux Server release 5.1 (Tikanga) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 22 Oct 2015 17:29:45 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11744#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11744#comment:2</guid> <description> <p> The issue is now resolved. </p> <p> The problem occurred because I only added boost/atomic and boost/detail subdirectories in my include path. Once I included the entire boost directory, this error went away. </p> <p> I was trying to get a subset of hpp files just for using the atomic library (trying to avoid copying unwanted 3p library headers that I don't need). But from reading documentation about header-only libraries, looks like I have to copy the entire boost directory. </p> <p> Please close this ticket. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Mon, 21 Dec 2015 15:42:51 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11744#comment:3 https://svn.boost.org/trac10/ticket/11744#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Boost.Atomic is not header-only, although most of the time you don't have to link with it. You can see the headers that comprise the library on <a class="ext-link" href="https://github.com/boostorg/atomic"><span class="icon">​</span>GitHub</a>, you will need all these files to use the library, along with dependencies. </p> Ticket