What is rb++ / rbgccxml?
Rb++, rbgccxml, and rice compose a suite of tools that make wrapping
Ruby extensions as simple as possible. This is built as a replacement
- Full 1.9 support through the entire stack!
- MinGW / MSYS build support on Windows.
* Updated to work with the Rice::Director changes
* Fixed a bug where rb++ wasn’t using any superclass on classes with
* Generated extension handles exceptions cleaner
* Various other small bug fixes and tweaks
* Switched parsing from libxml-ruby to nokogiri
* Fixed crash on encountering , but no real handling of the
* Fixed a bug with older gcc versions on dealing with anonymous
This single command will grab the whole stack needed for rb++ to work.
gem install rbplusplus
The stack includes four libraries: rb++, rbgccxml, gccxml_gem, and
Rb++ makes it almost trivially easy to create Ruby extensions for C++
In the simplest of cases, there is no need to ever touch C++,
in a very simple and clean Ruby API.
RbGCCXML allows one to easily parse out and query C / C++ code.
This library uses GCC-XML to parse out the C / C++ code into XML, and
to parse and query that XML.
GCC-XML (www.gccxml.org) is an application that takes takes the parse
of C / C++
and constructs a very parsable and queryable XML file with all related
This gem includes a binary build of GCC-XML for supported platforms,
to make it trivially easy to install. Platforms currently supported
* Linux 32 & 64 bit * Mac OS X * Windows via MinGW / MSYS
The Ruby Interface for C++ Extensions, it provides a C++ API for
with ruby. More information
available at its project page:
Released under the MIT licence.
For those familiar with py++ / pygccxml, the similarities are in
Rb++ / rbgccxml were written from scratch to take advantage of the
language to it’s fullest.
Bugs, patches, feature requests, et al should be posted to the
corresponding project’s Issues page on github.