boost does not compile with g++44 with the error `missing binary operator before token "("`

Solution Unverified - Updated -

Issue

  • Boost libraries fail to compile in gcc-4.4.x with the following errors.
$ g++44 -E /usr/include/boost/mpl/bind.hpp -o /dev/null
In file included from /usr/include/boost/mpl/bind.hpp:27:
/usr/include/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator
before token "("
/usr/include/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator
before token "("
/usr/include/boost/mpl/bind.hpp:364:31: error: missing binary operator before
token "("
/usr/include/boost/mpl/bind.hpp:531:31: error: missing binary operator before
token "("

Environment

  • Red Hat Enterprise Linux 5
  • boost-1.33.1-10.el5_7.3
  • boost-devel-1.33.1-10.el5_7.3
  • gcc44-4.4.4-13.el5
  • gcc44-c++-4.4.4-13.el5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content