Hi
On Wednesday 25 November 2009 22:29:41 praga wrote:You should either add bin/boostpath/lib to the LD_LIBRARY_PATH environment variable,
> I ran a simple program using boost mpi but I found some problems with that.
> I have given the code and actions I have done. The ldd clearly says it cant
> find many libraries. I am not sure how to fix this. Could anybody help me ?
>
> main.cpp
>
> #include <boost/mpi/environment.hpp>#include
> <boost/mpi/communicator.hpp>#include <iostream>namespace mpi =
> boost::mpi;
> int main(int argc, char* argv[]) {
> mpi::environment env(argc, argv);
> mpi::communicator world;
> std::cout << "I am process " << world.rank() << " of " << world.size()
> << "." << std::endl;
> return 0;}
>
>
>
>
> [pragatheeswaran@prairiefire ~]$ mpic++ -I bin/boostpath/include main.cpp -L
> bin/boostpath/lib/ -lboost_mpi -lboost_serialization
> [pragatheeswaran@prairiefire ~]$ ldd a.out
> libboost_mpi.so.1.41.0 => not found
> libboost_serialization.so.1.41.0 => not found
or you should add -R bin/boostpath/lib/ option to the command line above -- in
addition to -L.
I have no idea about these. Could it be that your MPI is not installed system-wide,
> libmpi_cxx.so.0 => not found
> libmpi.so.0 => not found
> libopen-rte.so.0 => not found
> libopen-pal.so.0 => not found
but to a custom location? In that case, you need to do the same LD_LIBRARY_PATH/-R
dance for the corresponding library directories.
- Volodya
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build