|
Boost : |
From: John Maddock (john_at_[hidden])
Date: 2003-12-10 06:56:15
Compiling boost_regex on OSX using
STLPort AND Gcc 3.1, I needed to comment out a region in
the file
./boost/config/platform/macos.hpp:
then it works fine.
Maybe it would be a gould idea to provide your package with a
gcc_osx.mak which undefines
__APPLE_CC__
and uses g++ -fno-coalesce and etc.
to get rid of the
"illegal reference for -dynamic code" - link error
.. or can you use a different macro than __APPLE_CC__ to find out which
compiler is used?
Here is the code of the file macos.hpp:
//# ifndef __APPLE_CC__
// seems to be defined all the time even if I use gcc
// GCC strange "ignore std" mode works better if you pretend everything
// is in the std namespace, for the most part.
// -- yes thats why I need this:
# define BOOST_NO_STDC_NAMESPACE
//# else
//# error "seemed to be defined: __APPLE_CC__"
//# endif
David
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk