On 01.10.2014 16:22, Ács Judit wrote:
> Hi,
>
> I have been trying to install graph-tool on a Debian server which I don't 
> have root access for for a day now, and after some of trouble I was able to 
> run configure but now make fails with the following:
>
>   CXX      graph_blockmodel.lo
> In file included from graph_blockmodel.cc:39:0:
> graph_blockmodel_overlap.hh: In lambda function:
> graph_blockmodel_overlap.hh:900:50: error: no match for ‘operator[]’ in 
> ‘((graph_tool::overlap_partition_stats_t*)this)->graph_tool::overlap_partition_stats_t::_embhist[bv_i]’
> graph_blockmodel_overlap.hh:900:50: note: candidates are:
> In file included from /usr/include/c++/4.7/bits/hashtable.h:36:0,
>                  from /usr/include/c++/4.7/unordered_set:45,
>                  from ./../graph_properties.hh:24,
>                  from ./../graph.hh:35,
>                  from ./../graph_filtering.hh:21,
>                  from graph_blockmodel.cc:28:
> /usr/include/c++/4.7/bits/hashtable_policy.h:435:5: note: 
> std::__detail::_Map_base<_Key, _Pair, std::_Select1st<_Pair>, true, 
> _Hashtable>::mapped_type& std::__detail::_Map_base<_Key, _Pair, 
> std::_Select1st<_Pair>, true, _Hashtable>::operator[](const _Key&) [with _Key 
> = std::vector<int>; _Pair = std::pair<const std::vector<int>, 
> std::vector<long unsigned int> >; _Hashtable = 
> std::_Hashtable<std::vector<int>, std::pair<const std::vector<int>, 
> std::vector<long unsigned int> >, std::allocator<std::pair<const 
> std::vector<int>, std::vector<long unsigned int> > >, 
> std::_Select1st<std::pair<const std::vector<int>, std::vector<long unsigned 
> int> > >, std::equal_to<std::vector<int> >, std::hash<std::vector<int> >, 
> std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, 
> std::__detail::_Prime_rehash_policy, true, false, true>; 
> std::__detail::_Map_base<_Key, _Pair, std::_Select1st<_Pair>, true, 
> _Hashtable>::mapped_type = std::vector<long unsigned int>] <near match>
> /usr/include/c++/4.7/bits/hashtable_policy.h:435:5: note:   no known 
> conversion for implicit ‘this’ parameter from ‘const ebhist_t* {aka const 
> std::unordered_map<std::vector<int>, std::vector<long unsigned int> >*}’ to 
> ‘std::__detail::_Map_base<std::vector<int>, std::pair<const std::vector<int>, 
> std::vector<long unsigned int> >, std::_Select1st<std::pair<const 
> std::vector<int>, std::vector<long unsigned int> > >, true, 
> std::_Hashtable<std::vector<int>, std::pair<const std::vector<int>, 
> std::vector<long unsigned int> >, std::allocator<std::pair<const 
> std::vector<int>, std::vector<long unsigned int> > >, 
> std::_Select1st<std::pair<const std::vector<int>, std::vector<long unsigned 
> int> > >, std::equal_to<std::vector<int> >, std::hash<std::vector<int> >, 
> std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, 
> std::__detail::_Prime_rehash_policy, true, false, true> >*’
>
> This goes on for several lines. Am I using the wrong compiler? My gcc version 
> is 4.7.2.
> I read the INSTALL file and I can't find the solution.
>
> I disabled cairo and sparsehash.
>
> Do you have any idea why I'm getting these errors?

I cannot reproduce this on any Debian system I have access to, but the
oldest GCC I'm using is version 4.8. I suspect this issue is due to an
old compiler, since graph-tool requires good C++11
support. Unfortunately, without the rest of the error message I cannot
evaluate whether or not this is really a problem with the compiler.

Best,
Tiago

--
Tiago de Paula Peixoto <[email protected]>

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to