Boost logo

Boost Users :

From: Ryan McGann (rmcgann_at_[hidden])
Date: 2005-12-18 23:56:26


Hello,

I am trying to use the latest release of Boost (1.33.1) on Mac OS X
10.4 with gcc 4. I am running into a couple of issues. I have worked
around all of them, but since the workarounds have required editing
the actual bost files, I am wondering if there's something I am missing.

1) The build.sh file for the boost bjam tool in the 1.33.0 and 1.33.1
release seems to have DOS line endings. I know there are prebuilt
binaries of bjam up on the Web, but our build system builds it
manually, and it choked on Darwin because sh didn't like the DOS line
endings. I resaved the file with Unix line endings and it built fine.
2) I get errors for multiply defined symbols for the placeholder
symbols declared in boost/bind/placeholders.hpp. Every file that
#include <boost/bind.hpp> contains actual instances of _1, _2, etc.
Changing the declarations of these in boost/bind.hpp to static (I
added a __APPLE__ to the #ifdef in the middle of the file) fixes this
issue, but then I get warnings for unused static symbols if I don't
use the placeholder objects. This issue in particular is quite annoying.
3) The header in boost/compatibility/cpp_c_headers/cstdio does not
match up with the cstdio file included with the Mac OS X dev tools.
In particular it is missing a using ::snprintf, which causes problems
because this cstdio file is being included BEFORE the Mac OS X
version of the same file, and other C++ header files rely on
std::snprtinf being declared. I fixed this at first by deleting the
boost/compatibility/cpp_c_headers folder, but then ending up just
deleting that single file so that OS X always used the built-in
header file.

If anybody has workarounds for any of the above issues that are
better than my workarounds, please by all means let me know.

Thanks for the help!

Ryan


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