
On Mon, 9 Nov 2009, Ondrej Sluciak wrote:
Ok, I tried the simplest possible example, but just didn't figure out where the problem is. I am on windows, mpich2 installed, all boost libs correctly compiled with mpi, but if I do something like
#include
#include #include #include void main(){ using namespace boost; typedef adjacency_list
, directedS> Graph; Graph g(4);
};
I always get linking problems like: Error 7 error LNK2019: unresolved external symbol "void __cdecl boost::graph::distributed::synchronize(class boost::graph::distributed::mpi_process_group const &)" (?synchronize@distributed@graph@boost@@YAXABVmpi_process_group@123@@Z) referenced in function "public: __thiscall boost::adjacency_list
,struct boost::directedS,struct boost::no_property,struct boost::no_property,struct boost::no_property,struct boost::listS>::~adjacency_list ,struct boost::directedS,struct boost::no_property,struct boost::no_property,struct boost::no_property,struct boost::listS>(void)" (??1?$adjacency_list@UvecS@boost@@U?$distributedS@Vmpi_process_group@distributed@graph@boost@@UvecS@4@UdefaultS@4@@2@UdirectedS@2@Uno_property@2@U52@U52@UlistS@2@@boost@@QAE@XZ) boostTest2.obj I think I have included all the necessary libs (including mpi.lib from mpich directory), so I still don't understand where is the problem. Does anyone tried distributed graph class?
Are you also including the graph_parallel library? Boost.Graph.Parallel is not header-only, unlike almost all of the sequential Boost.Graph library. -- Jeremiah Willcock