Boost logo

Boost :

From: edsutton_at_[hidden]
Date: 2001-08-17 09:57:05


I am trying to compile the Graph library's File Dependency Example
using Microsoft Visual C++. I am receiving 'global namespace" errors
and additional errors which I do not know how to resolve.

If anyone has experience using MSVC++ with the Graph library I am
very interested in receiving any tips or suggestions. ( I should
also mention that I do not have the freedom of choosing a standard
C++ compiler. )

File Dependency Example
http://www.boost.org/libs/graph/doc/file_dependency_example.html

Error Output :
--------------

I pasted the first error below and appended additional errors to this
email:

\boost_1_23_0\boost\pending\property.hpp(46) : error C2039: 'num' :
is not a
member of '`global namespace''
        \boost_1_23_0\boost\pending\detail\property.hpp(14) : see
reference
to class template instantiation 'boost::property_num<int>' being
compiled
        \boost_1_23_0\boost\pending\detail\property.hpp(147) : see
reference
to class template instantiation 'boost::detail::same_property<enum
boost::vertex_color_t,int>' being compiled
        \boost_1_23_0\boost\pending\detail\property.hpp(151) : see
reference
to class template instantiation
'boost::detail::recursive_extract::bind<struct std::pair<struct
std::pair<int,int>,struct boost::no_p

Thanks in advance for any tips or suggestions on using MSVC++ with
the Graph
library,

-Ed

Additional Errors
-----------------
        \boost_1_23_0\boost\pending\property.hpp(75) : see reference
to class template
instantiation 'boost::detail::recursive_extract::bind<struct
std::pair<struct std::pair<enum boost::graph_visitor_t,struct
boost::topo_sort_visitor<class std::front_insert_iterator<class
std::list<unsigned int,class std::allocator<unsigned int> > > >
>,struct std::pair<struct std::pair<int,int>,struct
boost::no_property> >,enum boost::vertex_color_t>' being compiled
        \boost_1_23_0\boost\graph\depth_first_search.hpp(159) : see
reference to class template
instantiation 'boost::property_value<struct
boost::bgl_named_params<struct boost::topo_sort_visitor<class std::fro
nt_insert_iterator<class std::list<unsigned int,class
std::allocator<unsigned int> > > >,enum boost::graph_visitor_t,struct
boost::bgl_named_params<int,int,struct boost::no_property> >,enum
boost::vertex_color_t>' being compiled
        \boost_1_23_0\boost\graph\topological_sort.hpp(75) : see
reference to function template instantiation 'void __cdecl
boost::depth_first_search(const class boost::adjacency_list<struct
boost::vecS,struct
boost::vecS,struct boost::directedS,struct boost::property<enum
boost::vertex_color_t,enum boost::default_color_type,struct
boost::no_property>,struct boost::property<enum
boost::edge_weight_t,int,struct boost::no_property>,struct
boost::no_property
> &,const struct boost::bgl_named_params<struct
boost::topo_sort_visitor<class std::front_insert_iterator<class
std::list<unsigned int,class std::allocator<unsigned int> > > >,enum
boost::graph_visitor_t,struct boost::bgl_named_params<int,int,struct
 boost::no_property> > &)' being compiled
\boost_1_23_0\boost\pending\property.hpp(46) : error
C2275: 'Property' : illegal use of this type as an expression
        \boost_1_23_0\boost\pending\property.hpp(45) : see
declaration of 'Property'
        \boost_1_23_0\boost\pending\detail\property.hpp(14) : see
reference to class template instantiation 'boost::property_num<int>'
being compiled
        \boost_1_23_0\boost\pending\detail\property.hpp(147) : see
reference to class template
instantiation 'boost::detail::same_property<enum
boost::vertex_color_t,int>' being compiled
        \boost_1_23_0\boost\pending\detail\property.hpp(151) : see
reference to class template
instantiation 'boost::detail::recursive_extract::bind<struct
std::pair<struct std::pair<int,int>,struct boost::no_p
roperty>,enum boost::vertex_color_t>' being compiled
        \boost_1_23_0\boost\pending\property.hpp(75) : see reference
to class template
instantiation 'boost::detail::recursive_extract::bind<struct
std::pair<struct std::pair<enum boost::graph_visitor_t,struct
boost::topo_sort_visitor<class std::front_insert_iterator<class
std::list<unsigned int,class std::allocator<unsigned int> > > >
>,struct std::pair<struct std::pair<int,int>,struct
boost::no_property> >,enum boost::vertex_color_t>' being compiled
        \boost_1_23_0\boost\graph\depth_first_search.hpp(159) : see
reference to class template
instantiation 'boost::property_value<struct
boost::bgl_named_params<struct boost::topo_sort_visitor<class std::fro
nt_insert_iterator<class std::list<unsigned int,class
std::allocator<unsigned int> > > >,enum boost::graph_visitor_t,struct
boost::bgl_named_params<int,int,struct boost::no_property> >,enum
boost::vertex_color_t>' being compiled
        \boost_1_23_0\boost\graph\topological_sort.hpp(75) : see
reference to function template instantiation 'void __cdecl
boost::depth_first_search(const class boost::adjacency_list<struct
boost::vecS,struct
boost::vecS,struct boost::directedS,struct boost::property<enum
boost::vertex_color_t,enum boost::default_color_type,struct
boost::no_property>,struct boost::property<enum
boost::edge_weight_t,int,struct boost::no_property>,struct
boost::no_property
> &,const struct boost::bgl_named_params<struct
boost::topo_sort_visitor<class std::front_insert_iterator<class
std::list<unsigned int,class std::allocator<unsigned int> > > >,enum
boost::graph_visitor_t,struct boost::bgl_named_params<int,int,struct
 boost::no_property> > &)' being compiled
\boost_1_23_0\boost\pending\property.hpp(46) : error C2057: expected
constant expression
        \boost_1_23_0\boost\pending\detail\property.hpp(14) : see
reference to class template instantiation 'boost::property_num<int>'
being compiled
        \boost_1_23_0\boost\pending\detail\property.hpp(147) : see
reference to class template
instantiation 'boost::detail::same_property<enum
boost::vertex_color_t,int>' being compiled
        \boost_1_23_0\boost\pending\detail\property.hpp(151) : see
reference to class template
instantiation 'boost::detail::recursive_extract::bind<struct
std::pair<struct std::pair<int,int>,struct boost::no_p
roperty>,enum boost::vertex_color_t>' being compiled


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk