Thanks for your reply. 

I added it, but the same error. 

I found the possible reason is that the compiler cannot find the header files in the program. 

This is my program got from the boost download package. 
--------------------------------------------------------------------------------
#include </home/mypath/boost_2010_6_8/boost_1_43_0/boost/mpi/environment.hpp>

#include </home/mypath/boost_2010_6_8/boost_1_43_0/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;
}
-----------------------------------------------------------------------------------

The g++ compiler can find  "environment.hpp" because I have indicated the absolute path. 
But, inside the "environment.hpp", it needs other header files such as " boost/mpi/config.hpp". 

I have installed the boost lib in mypath with the prefix=mypath. 

I have also update the PATH and LD_LIBRARY_PATH variable name with the boost path in my shell. 

Why does the compiler not find them ?

Any help is appreciated. 

thanks,

Jack

June 9  2010




> Date: Wed, 9 Jun 2010 21:37:36 +0200
> From: riccardo.murri@gmail.com
> To: boost-users@lists.boost.org
> Subject: Re: [Boost-users] boost.MPI test error
>
> Hi Jack,
>
> On Wed, Jun 9, 2010 at 7:39 PM, Jack Bryan <dtustudy68@hotmail.com> wrote:
> > 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
>
> quite likely you have to add "-I./" to the compiler command line::
>
> g++ -o testp2p -I./ test_p2p.cpp
>
> Regards,
> Riccardo
>
> --
> Riccardo Murri, Hadlaubstr. 150, 8006 Zürich (CH)
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-userks, 


The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy.