
Yuan Yao <yaoyuan0123 <at> outlook.com> writes:
The following is my compilation settings: BOOST: 1.59 Compiler: VS Community 2015 MPI: Microsoft MPI v6
Command: b2 --user-config=user- config.jam variant=debug,release link=shared runtime-link=shared install Part of Error Message: ========================================
E:\TDDOWNLOAD\Soft\gnu\boost_1_59_0\boost/ mpi/detail/ignore_skeleton_oarchive.hpp(64 ):
error C2664: "void boost::mpi::detail::ignore_skeleton_oarchi ve<boost::mpi::detail::content_oarchive>:: save_override(const std::string &,int)": ????? 1 ?"const boost::serialization::array<const _Elem>"???"const std::string &" with [ _Elem=char ]
E:\TDDOWNLOAD\Soft\gnu\boost_1_59_0\boost/ mpi/detail/ignore_skeleton_oarchive.hpp(64 ):
note: ????: ???"const boost::serialization::array<const _Elem>"???"const std::string" with [ _Elem=char ]
E:\TDDOWNLOAD\Soft\gnu\boost_1_59_0\boost/ mpi/detail/ignore_skeleton_oarchive.hpp(64 ):
note: ?????????????????????,??????????
E:\TDDOWNLOAD\Soft\gnu\boost_1_59_0\boost/ mpi/detail/ignore_skeleton_oarchive.hpp(62 ):
note: ??? ?? ????"void
boost::mpi::detail::ignore_skeleton_oarchi ve<boost::mpi::detail::content_oarchive>:: save_override(const
std::string &,int)"?
E:\TDDOWNLOAD\Soft\gnu\boost_1_59_0\boost/ mpi/detail/content_oarchive.hpp(29):
note: ????????? ?? ???"boost::mpi::detail::ignore_skeleton_oa rchive<boost::mpi::detail::content_oarchiv e>"
Unfortunately your error messages are only displayed as question marks, but the file names and function names look exactly like the errors that I also had when trying to build MPI as a shared library with MSVC. I have created a pull request which fixes the errors for me: https://github.com/boostorg/mpi/pull/25