[Gc] Patches for C++ to support throw() declarations, and that throw std::bad_alloc on OOM.

Petter Urkedal urkedal at nbi.dk
Fri Nov 13 12:48:26 PST 2009


On 2009-11-10, Talbot, George wrote:
> I agree with you in both cases.  I'm not sure that I understand the build system for libgccpp well enough to generate the two different versions, though I could take a look tomorrow.

For the Automake-based build you can add something like

lib_LTLIBRARIES += libgccpp_cn.la
libgccpp_cn_la_CPPFLAGS = -DGC_COLLECTABLE_NEW
libgccpp_cn_la_SOURCES = $(libgccpp_la_SOURCES)
libgccpp_cn_la_LIBADD = libgc.la
libgccpp_cn_la_LDFLAGS = -version-info 1:3:0 -no-undefined


More information about the Gc mailing list