Hi, 

thanks

It works, but I got new error. 

mpic++ -o tp2p -I/home/mypath/boost_2010_6_8/boost_1_43_0  test_p2p.cpp
input in flex scanner failed

Is there something wrong with the parsing translator "flex" ? 

I can compile other mpi program without any problems. 

Is this a special problem of boost ? 

Any help is appreciated.

Thanks

Jack

June 9  2010


> Date: Wed, 9 Jun 2010 15:00:33 -0700
> From: watanabesj@gmail.com
> To: boost-users@lists.boost.org
> Subject: Re: [Boost-users] boost.MPI test error
>
> AMDG
>
> Jack Bryan wrote:
> > 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.
>
> Use the option -I/home/mypath/boost_2010_6_8/boost_1_43_0
>
> Then, you should be able to
> #include <boost/mpi/communicator.hpp>
>
> In Christ,
> Steven Watanabe
>
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more.