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
#include 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