[C++-sig] Py++ : passing defines to gccxml

Roman Yakovenko roman.yakovenko at gmail.com
Sat Dec 16 20:00:42 CET 2006


On 12/16/06, Anand, Kumar <kanand at qualcomm.com> wrote:
> I am trying to use Py++ to generate boost python bindings for a C++ header
> file. However gcc-xml parsing fails because of absence of certain define
> used inside an inline function in the header file. Is there a way to pass a
> define through Py++ module builder which will be eventually passed to gccxml
> as –D?

API documentation:
http://language-binding.net/pyplusplus/documentation/apidocs/pyplusplus.module_builder.builder.module_builder_t-class.html#__init__

Usage example:
http://pygccxml.svn.sourceforge.net/viewvc/pygccxml/pyplusplus_dev/examples/pyboost_dev/dev/date_time/generate_code.py?view=markup
http://pygccxml.svn.sourceforge.net/viewvc/pygccxml/pyplusplus_dev/examples/pyboost_dev/dev/date_time/date_time_settings.py?view=markup

HTH
-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list