Boost logo

Boost :

From: Angus Leeming (angus.leeming_at_[hidden])
Date: 2003-10-08 13:23:11


Hello,
we find that we need something like this patch to compile LyX
on Mac OSX with gcc 2.95.

I have two questions:
1. Why is this patch needed on the Mac when other platforms do not.
2. If it were incorporated back into boost, where would it go?
boost/regex/config.hpp?

Kind regards,
Angus

Index: boost/boost/config/user.hpp
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/boost/boost/config/user.hpp,v
retrieving revision 1.8
diff -u -p -r1.8 user.hpp
--- boost/boost/config/user.hpp 7 Aug 2003 12:09:23 -0000 1.8
+++ boost/boost/config/user.hpp 8 Oct 2003 14:46:37 -0000
@@ -68,3 +68,7 @@

 #define BOOST_NO_WREGEX 1
 #define BOOST_NO_WSTRING 1
+
+#if defined(__APPLE__) && defined(__GNUC__) && __GNUC__ == 2
+#define BOOST_REGEX_NARROW_INSTANTIATE
+#endif

The errors without #define BOOST_REGEX_NARROW_INSTANTIATE are:

/usr/bin/ld: Undefined symbols:
__._Q25boostt14reg_expression3ZcZQ25boostt12regex_traits1ZcZt9allocator1Zc
___Q25boostt14reg_expression3ZcZQ25boostt12regex_traits1ZcZt9allocator1ZcPCcUiRCB2
___Q35boost9re_detailt18match_results_base2ZPCcZt9allocator1ZcRCB1_allocator
__CQ35boost9re_detailt18match_results_base2ZPCcZt9allocator1Zc
_cow__Q35boost9re_detailt18match_results_base2ZPCcZt9allocator1Zc
_m_free__Q35boost9re_detailt18match_results_base2ZPCcZt9allocator1Zc
_set_first__Q35boost9re_detailt18match_results_base2ZPCcZt9allocator1ZcPCc
_set_first__Q35boost9re_detailt18match_results_base2ZPCcZt9allocator1ZcPCcUl
_set_size__Q35boost9re_detailt18match_results_base2ZPCcZt9allocator1ZcUlPCcn1
_set_expression__Q25boostt14reg_expression3ZcZQ25boostt12regex_traits1ZcZt9allocator1ZcPCcn1Ui
___Q25boostt14reg_expression3ZcZQ25boostt12regex_traits1ZcZt9allocator1ZcRCB0
___Q25boostt14reg_expression3ZcZQ25boostt12regex_traits1ZcZt9allocator1ZcRCB2
___as__Q25boostt14reg_expression3ZcZQ25boostt12regex_traits1ZcZt9allocator1ZcRCB0
_allocator__CQ25boostt14reg_expression3ZcZQ25boostt12regex_traits1ZcZt9allocator1Zc


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk