Boost logo

Boost :

From: Thomas Porschberg (thomas.porschberg_at_[hidden])
Date: 2006-01-06 07:17:28

Thomas Porschberg <thomas.porschberg <at>> writes:

The rules for finding the right library to link are too primitive.
E.g. if you install BOOST for Cygwin you get only
libboost_filesystem-gcc-mt-s.a which are identical.
I use now the following procedure to find the right library name:

if test "$ax_cv_boost_filesystem" = "yes"; then
  AC_DEFINE(HAVE_BOOST_FILESYSTEM,,[define if the Boost::FILESYSTEM library is
  for ax_lib in boost_filesystem boost_filesystem-$CC boost_filesystem-$CC-mt
boost_filesystem-$CC-mt-s ; do
     AC_CHECK_LIB($ax_lib, main,
AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes" break],
  if test "x$link_filesystem" = "xno"; then
     AC_MSG_NOTICE(Could not link against $ax_lib !)

Boost list run by bdawes at, gregod at, cpdaniel at, john at