Boost logo

Boost Users :

Subject: Re: [Boost-users] boost.MPI test error
From: Jack Bryan (dtustudy68_at_[hidden])
Date: 2010-06-09 23:17:50


thanks
I need to compile a boot mpi program.
mpic++ -o tp2p -I/home/mypath/boost_2010_6_8/boost_1_43_0 test_p2p.cpp
But I got error:
input in flex scanner failed
It seems that mpic++ cannot accept the compiling command.
I cannot find man page or help document for mpic++.
Any help is appreciated.
thanks
Jack
June 9 2010
> Date: Wed, 9 Jun 2010 15:00:33 -0700
> From: watanabesj_at_[hidden]
> To: boost-users_at_[hidden]
> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
                                               
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3



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