Boost logo

Boost Users :

Subject: [Boost-users] LINK Error while building PBGL example breadth_first_search.cpp
From: 余韬 (yyuuttaaoo_at_[hidden])
Date: 2011-09-08 15:47:02


I am trying to learn PBGL. I am using VS2008 on Win 7.
I had built and installed open mpi 1.4.3, HPC Pack 2008 SDK, and Boost
library 1.46.1 with "bjam --with-mpi --with-graph_parallel".
I had set include and library directory for the above 3 libraries in VS2008.
The additional dependency set for the project is "libboost_*mpi*-vc90-mt-gd.lib
libboost_wserialization-vc90-mt-gd.lib libboost_graph-vc90-mt-gd.lib
libboost_*graph_parallel*-vc90-mt-gd.lib libboost_system-vc90-mt-gd.lib
libmpi_cxxd.lib libmpid.lib libopen-pald.lib libopen-rted.lib msmpi.lib"

Here are the major references I had referred which helped to reduce errors

However, while compiling
on my machine, I still got the following 4 link errors:

Error 4 error LNK2019: unresolved external symbol "*private: struct
ompi_datatype_t * __thiscall boost::mpi::detail::mpi_datatype_map::get(class
type_info const *)*" breadth_first_search.obj

Error 3 error LNK2019: unresolved external symbol "*private: void __thiscall
boost::mpi::detail::mpi_datatype_map::set(class type_info const *,struct
ompi_datatype_t *)*" breadth_first_search.obj

Error 2 error LNK2019: unresolved external symbol "*public: __thiscall
boost::mpi::communicator::operator struct ompi_communicator_t *(void)const*"

Error 1 error LNK2019: unresolved external symbol "void __cdecl
boost::detail::bfs_helper<class boost::adjacency_list<struct
boost::vecS,struct boost::distributedS<class
boost::graph::distributed::mpi_process_group,struct boost::vecS,struct
boost::defaultS>......" breadth_first_search.obj

Am I missing something here?

Tao Yu

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at