
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 #include #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