Hi 
  I tried doing like what you have given below but still I am getting the same errors. how to check whether MPI is installed correctly ?

I did a nm -D in 

[pragatheeswaran@prairiefire lib]$ nm -D libboost_mpi.a 

broadcast.o:
nm: broadcast.o: No symbols

Any ideas ?

Thanks,
Praga.


On Wed, Nov 25, 2009 at 1:51 PM, Vladimir Prus <ghost@cs.msu.su> wrote:
On Wednesday 25 November 2009 22:29:41 praga wrote:

> 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

You should either add bin/boostpath/lib to the LD_LIBRARY_PATH environment variable,
or you should add -R bin/boostpath/lib/ option to the command line above -- in
addition to -L.


>  libmpi_cxx.so.0 => not found
> libmpi.so.0 => not found
> libopen-rte.so.0 => not found
>  libopen-pal.so.0 => not found

I have no idea about these. Could it be that your MPI is not installed system-wide,
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