Linking against Boost.MPI and Boost.Serilaization in Ubuntu
I have ubuntu with boost, boost.MPI installed. I don't know how can I link against Boost_MPI and Boost_Serialization though. For commands like this,
mpic++ -I/path/to/bo开发者_Python百科ost/mpi my_application.cpp -lboost_mpi-gcc-mt-1_35 -lboost_serialization-gcc-d-1_35.a
how can I know the appropriate names of the libraries ? Tarek
I would suggest the following steps:
- Use synaptic package manager and make sure that libboost-serialization-dev and libboost-mpi-dev are installed.
Try lib names without version number.
mpic++ my_application.cpp -lboost_mpi -lboost_serialization
If it doesn't work go back to the package manager, select the library and click Properties button. From there you can see full path name for the selected package's install files.
精彩评论