|
Boost : |
From: Richard Hadsell (hadsell_at_[hidden])
Date: 2002-07-11 17:24:01
For compatibility with some third-party software, I am forced to use g++ 2.91.66
on a Linux x86 platform. If it is possible, I would like to use some of the
Boost libraries, as I do on my other platforms. For the moment, I am interested
in the Regex++ library and in the scoped_ptr and scoped_array classes.
I have looked at the gcc.hpp header, which seems to support this version, but
building Regex++ was a catastrophe. Additionally defining
BOOST_NO_STD_ALLOCATOR via a compile flag helped somewhat.
Then I figured out how to use configure to generate a user.hpp header. That
resulted in these macros:
#define BOOST_MSVC6_MEMBER_TEMPLATES
#define BOOST_HAS_UNISTD_H
#define BOOST_HAS_STDINT_H
#define BOOST_HAS_SLIST
#define BOOST_HAS_SGI_TYPE_TRAITS
#define BOOST_HAS_SCHED_YIELD
#define BOOST_HAS_PTHREADS
#define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
#define BOOST_HAS_NL_TYPES_H
#define BOOST_HAS_NANOSLEEP
#define BOOST_HAS_LONG_LONG
#define BOOST_HAS_HASH
#define BOOST_HAS_GETTIMEOFDAY
#define BOOST_NO_USING_TEMPLATE
#define BOOST_NO_SWPRINTF
#define BOOST_NO_STD_WSTRING
#define BOOST_NO_STD_USE_FACET
#define BOOST_NO_STD_MESSAGES
#define BOOST_NO_STD_LOCALE
#define BOOST_NO_STD_ITERATOR
#define BOOST_NO_STD_ALLOCATOR
#define BOOST_NO_STRINGSTREAM
#define BOOST_NO_OPERATORS_IN_NAMESPACE
#define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
#define BOOST_NO_LIMITS
The build still fails at this point:
g++ -o generic/boost_regex/cregex.o -c -O2 -I../../../ -march=i686 -mieee-fp
-DBOOST_USER_CONFIG="<boost/config/egcs-1.1.2-config.hpp>" ../src/cregex.cpp
In file included from ../../../boost/regex.hpp:1530,
from ../src/cregex.cpp:27:
../../../boost/regex/detail/instances.hpp:108: syntax error before `<'
../../../boost/regex/detail/instances.hpp:135: confused by earlier errors,
bailing out
Is this hopeless?
If there is no way to use Regex++ with this ancient compiler, is it possible
that scoped_ptr and scoped_array might work?
-- Dick Hadsell 914-259-6320 Fax: 914-259-6499 Reply-to: hadsell_at_[hidden] Blue Sky Studios http://www.blueskystudios.com 44 South Broadway, White Plains, NY 10601
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk