autoconf - What pthread functions are used by boost interprocess? -
i using boost::interprocess
implement ipc mechanism based on shared memory. want cross platform (including windows), , build system autotools. on platforms boost::interprocess requires link library librt
implements threading functions, not on windows, or apple platforms (i think). see following link:
now, in autotools can things conditionally depending on host being windows, better test if required functions available using ac_search_libs. ac_search_libs macro first checks if functions available no libraries, using provided list of libraries in sequence.
to test, need know functions search for.
to more specific need use following headers in program:
#include <boost/interprocess/managed_shared_memory.hpp> #include <boost/interprocess/sync/interprocess_mutex.hpp> #include <boost/interprocess/sync/interprocess_condition.hpp> #include <boost/interprocess/allocators/allocator.hpp> #include <boost/interprocess/containers/vector.hpp>
so functions in librt
required these headers, or easiest way find out?
Comments
Post a Comment