Boost logo

Boost Users :

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


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_at_[hidden]
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] boost.MPI test error
>
> Hi Jack,
>
> On Wed, Jun 9, 2010 at 7:39 PM, Jack Bryan <dtustudy68_at_[hidden]> 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_at_[hidden]
> 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.
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5



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