Boost logo

Boost :

Subject: [boost] problem with building Boost version 1_34_1
From: Oliver Kullmann (O.Kullmann_at_[hidden])
Date: 2009-01-28 12:57:27


I have some "legacy code" to compile, using Boost version 1_34_1.
The compiler is gcc 4.1.2 (new versions of Boost don't work anymore,
and neither newer versions of gcc).

It used to go through, but now on 64-bit platforms I get the following
build error:

In file included from ./boost/spirit/attribute/closure.hpp:24,
                 from ./boost/wave/grammars/cpp_expression_grammar.hpp:16,
                 from libs/wave/src/instantiate_cpp_exprgrammar.cpp:21:
./boost/spirit/phoenix/operators.hpp:355: error: ‘INT_MAX’ was not declared in this scope

Now looking into the code that' correct (INT_MAX seems not be declared somewhere).
(BTW, there are many other errors like that; that's just the first one.)
So, apparently, somehow INT_MAX used to "slip in" by some uncontrolled inclusion, and
now this is no longer the case. But what I don't understand: I always compiled
it with the same local installation of gcc (4.1.2)?
So I guess it is due to a newer version of glibc now installed?

So I need to install first an old version of glibc (which?), then make gcc
aware of it (?), and then build boost?

I would be glad for some help (hints)!


Boost list run by bdawes at, gregod at, cpdaniel at, john at