|
Boost Users : |
Subject: Re: [Boost-users] [Spirit/Graph] New 1.40.0 compile errors in Spirit/Graph headers when using GCC with _GLIBCXX_DEBUGþ
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2009-09-09 10:36:03
On Wed, 9 Sep 2009, Tony Lewis wrote:
> When I compile this script (saved as test.cpp) which includes a pair of Boost Graph headers :
>
> #include <boost/graph/adjacency_list.hpp>
> #include <boost/graph/depth_first_search.hpp>
> int main() {
> return 0;
> }
>
>
> ...using the compile command :
>
> g++ -I/usr/include/boost -D_GLIBCXX_DEBUG test.cpp -o test
>
>
> ...I get (this warning and) these errors from the Boost Spirit library:
>
> In file included from /usr/include/c++/4.3/backward/hash_set:64,
> from /usr/include/boost/graph/adjacency_list.hpp:25,
> from test.cpp:1:
> /usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated
> header which may be removed without further notice at a future date. Plea se use a non-deprecated interface with equivalent
> functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this
> warning use -Wno-deprecated.
None of the errors are from Boost.Graph. This warning is because BGL uses
the various compiler extension headers (automatically chosen) to use hash
tables. Changing it to use TR1 or Boost.TR1 would be good for the future,
though.
-- Jeremiah Willcock
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net