Boost logo

Boost Users :

Subject: Re: [Boost-users] BGL: Problem to compile components_on_edgelist.cpp example.
From: Arman Khalatyan (arm2arm_at_[hidden])
Date: 2010-05-06 05:27:15


I got the recent revision 61803.
The compilation is ok but the code is crashing on the line:
72 incremental_components(g, ds);
------------- SNIP --------------------
libs/graph/example% ./components_on_edgelist.x
An undirected graph (edge list):
(0,1) (1,4) (4,0) (2,5)

Segmentation fault
------------END SNIP------------------

SO, what is the reason?

Thanks.
Arman.
On Wed, May 5, 2010 at 8:51 PM, Jeremiah Willcock <jewillco_at_[hidden]>wrote:

> On Wed, 5 May 2010, arm2arm wrote:
>
>
>> Hello, I cannot compile the components_on_edgelist.cpp example with gcc
>> 4.5/4.2 and VC++2009. I am using Boost 1.42
>> It trows errors on
>>
>>> c:\boost\include\boost-1_42\boost\graph\incremental_components.hpp(178) :
>>>
>> error C2825: 'ParentIterator': must be a class or namespace when followed
>> by
>> '::'
>> 1>
>> c:\boost\include\boost-1_42\boost\graph\incremental_components.hpp(141) :
>> see reference to function template instantiation 'void
>>
>> boost::component_index<IndexType>::build_index_lists<ParentIterator,boost::typed_identity_property_map<T>>(ParentIterator,const
>> ElementIndexMap &)' being compiled
>> 1> with
>> 1> [
>> 1> IndexType=int,
>> 1> ParentIterator=const unsigned int *,
>> 1> T=size_t,
>> 1> ElementIndexMap=boost::typed_identity_property_map<size_t>
>> 1> ]
>> and more...
>>
>> Are there some work around ?
>>
>> Actually I would like to construct disjoint sets based on vector<Edge>,
>> where Edge is pair<uint, uint>.
>>
>
> I fixed the various issues you are probably seeing with that example in the
> trunk just now; that version should work better. See if your code works
> with the new version.
>
> -- Jeremiah Willcock
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
------------------------------------------
Dr Arman Khalatyan,
Observatoire Astronomique de Marseille-Provence
Laboratoire d'Astrophysique de Marseille
-----------------------------------------


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