Boost logo

Boost Users :

From: Louis Lavery (Louis_at_[hidden])
Date: 2002-05-14 03:57:09


Hello,

    I've bought the book (BGL) and am trying to compile
boost_1_27_0/boost/libs/example/adjacency_list.cpp but...

...MSVC6 spits out the dreaded "fatal error C1001: INTERNAL COMPILER ERROR".

Intel 5's first (of many) error is

e:/boost_1_27_0/boost/detail/iterator.hpp(204) : error: class
"std::list<_Ty, _A>::iterator [with
_Ty=boost::list_edge<boost::detail::adj_list_gen<boost::adjacency_list<boost
::vecS, boost::listS, boost::undirectedS, boost::property<boost::vertex_ind
ex_t, size_t={unsigned int}, boost::property<boost::vertex_color_t,
boost::default_color_type, boost::no_property>>,
boost::property<boost::edge_name_t, std::string={std::basic_string<char,
std::char_traits<char>, std::allocator<char>>},
          boost::no_property>, boost::no_property, boost::listS>,
boost::listS, boost::vecS, boost::undirectedS,
boost::property<boost::vertex_index_t, size_t={unsigned int},
boost::property<boost::vertex_color_t, boost::default_color_type, boost::n
o_property>>, boost::property<boost::edge_name_t,
std::string={std::basic_string<char, std::char_traits<char>,
std::allocator<char>>}, boost::no_property>, boost::no_property,

boost::listS>::config::vertex_descriptor={boost::adjacency_list_traits<boost
::vecS, boost::listS,
boost::undirectedS>::vertex_descriptor={boost::ct_if_t<boost::adjacency_list
_traits<boost::vecS, boost::listS, boost::undirectedS>::is_rand_a
ccess={boost::detail::is_random_access<boost::listS>::type={boost::false_typ
e}}, size_t={unsigned int}, boost::adjacency_list_traits<boost::vecS,
boost::listS, boost::undirectedS>::vertex_ptr={void
*}>::type={boost::adjacency_list_traits<boost::vecS
,
          boost::listS, boost::undirectedS>::vertex_ptr={void *}}}},
boost::property<boost::edge_name_t, std::string={std::basic_string<char,
std::char_traits<char>, std::allocator<char>>}, boost::no_property>>,
_A=std::allocator<boost::list_edge<bo
ost::detail::adj_list_gen<boost::adjacency_list<boost::vecS, boost::listS,
boost::undirectedS, boost::property<boost::vertex_index_t, size_t={unsigned
int}, boost::property<boost::vertex_color_t, boost::default_color_type,
boost::no_property>>,
          boost::property<boost::edge_name_t,
std::string={std::basic_string<char, std::char_traits<char>,
std::allocator<char>>}, boost::no_property>, boost::no_property,
boost::listS>, boost::listS, boost::vecS, boost::undirectedS,
boost::property
<boost::vertex_index_t, size_t={unsigned int},
boost::property<boost::vertex_color_t, boost::default_color_type,
boost::no_property>>, boost::property<boost::edge_name_t,
std::string={std::basic_string<char, std::char_traits<char>,
          std::allocator<char>>}, boost::no_property>, boost::no_property,
boost::listS>::config::vertex_descriptor={boost::adjacency_list_traits<boost
::vecS, boost::listS,
boost::undirectedS>::vertex_descriptor={boost::ct_if_t<boost::adjacency_list
_traits<boost::vecS, boost::listS,
boost::undirectedS>::is_rand_access={boost::detail::is_random_access<boost::
listS>::type={boost::false_type}}, size_t={unsigned int},
boost::adjacency_list_traits<boost::vecS, boost::listS,
          boost::undirectedS>::vertex_ptr={void
*}>::type={boost::adjacency_list_traits<boost::vecS, boost::listS,
boost::undirectedS>::vertex_ptr={void *}}}},
boost::property<boost::edge_name_t, std::string={std::basic_string<char,
std::char_traits
<char>, std::allocator<char>>}, boost::no_property>>>]" has no member
"difference_type"
          typedef typename Iterator::difference_type difference_type;

My last hope gcc 2.95.2 comes up with...

In file included from e:\boost_1_27_0\boost\detail\numeric_traits.hpp:69,
                 from e:\boost_1_27_0\boost\counting_iterator.hpp:57,
                 from e:\boost_1_27_0\boost\pending\integer_range.hpp:15,
                 from
e:\boost_1_27_0\boost\graph\detail\adjacency_list.hpp:34,
                 from e:\boost_1_27_0\boost\graph\adjacency_list.hpp:293,
                 from adjacency_list.cpp:31:
e:\boost_1_27_0\boost\cstdint.hpp:163: parse error
e:\boost_1_27_0\boost\cstdint.hpp:171: #error defaults not correct; you must
hand modify boost/cstdint.hpp

I'd like to get it working with MSVC6 or Intel5.

Any help much appreciated.

Louis.


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