Boost logo

Boost Users :

Subject: [Boost-users] boost.MPI test error
From: Jack Bryan (dtustudy68_at_[hidden])
Date: 2010-06-09 13:39:55


Hi All:
I have installed boost lib also including mpi.
I am trying to run some simple mpi program to test it.
my program: (test_p2p.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;}--------------------------------------------------------
my compile command: g++ -o testp2p test_p2p.cpp
I got error :
/boost/mpi/environment.hpp:16:32: error: boost/mpi/config.hpp: No such file or directory
But , I have checked the directory: boost/mpi/, it actually have config.hpp.
I have added the path for these files into my PATHPATH=/home/myfolder/boost_2010_6_8/boost_1_43_0
also LD_LIBRARY_PATH=/home/myfolder/boost_2010_6_8/boost_1_43_0
why I still have this error.
Any help is really appreciated.
thanks
Jack
June 9 2010
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net