|
Boost Users : |
From: Foster Gareth (gareth.foster_at_[hidden])
Date: 2005-10-03 04:22:13
Hello all,
I am trying to build an autotooled project that will use boost wave and
filesystem. I can see the following files that were built when I compiled
boost that I could link to.
"
libboost_wave-mgw-1_33.lib libboost_wave-mgw-mt-sd-1_33.lib
libboost_wave-mgw-d-1_33.lib libboost_wave-mgw-mt-sd.lib
libboost_wave-mgw-d.lib libboost_wave-mgw-mt.lib
libboost_wave-mgw-mt-1_33.lib libboost_wave-mgw-s-1_33.lib
libboost_wave-mgw-mt-d-1_33.lib libboost_wave-mgw-s.lib
libboost_wave-mgw-mt-d.lib libboost_wave-mgw-sd-1_33.lib
libboost_wave-mgw-mt-s-1_33.lib libboost_wave-mgw-sd.lib
libboost_wave-mgw-mt-s.lib libboost_wave-mgw.lib
"
Which of those should I be linking to? I have added the following to my
configure.ac
"
# Ask user for path to boost stuff:.
AC_ARG_WITH(boost,
[ --with-boost=<path> prefix of Boost 1.33 installation. e.g. /usr/local
or /usr],
[BOOST_PREFIX=$with_boost],
AC_MSG_ERROR([You must call configure with the --with-boost option.
This tells configure where to find the Boost C++ librarys and headers.
e.g. --with-boost=/usr/local or --with-boost=/usr])
)
AC_SUBST(BOOST_PREFIX)
# Individual boost libs
BOOST_WAVE_LIBS="-L${BOOST_PREFIX}/lib/libboost_wave-mgw-1_33.lib"
BOOST_FILESYSTEM_LIBS="-L${BOOST_PREFIX}/lib/libboost_filesystem-mgw-1_33.li
b"
BOOST_CFLAGS="-I${BOOST_PREFIX}/include/boost-1_33"
AC_SUBST(BOOST_WAVE_LIBS)
AC_SUBST(BOOST_FILESYSTEM_LIBS)
AC_SUBST(BOOST_CFLAGS)
"
I get link errors when I try to make this project however. So the include
path is working, I suppose I just need to get the right library.
As an aside, it would be _really_ nice if the boost jam build procedure
installed package config .pc files, I know Boost doesn't use autotools, but
lots of people do, and it would make their lives easier :)
<wish>
PKG_CHECK_MODULES(DEPS, boost >= 1.33)
</wish>
Cheers all,
Gaz
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