|
From: William S F. <ws...@fu...> - 2016-10-23 12:48:04
|
On 18 October 2016 at 14:19, Andrew Smith <smi...@ho...> wrote: > Hi, > > > I am trying to create (in swig 3.0) bindings in golang for Lasso ( > http://lasso.entrouvert.org/documentation/api-reference/index.html) > > > The problem I have is that some 'struct' types have datamembers that are > 'gchar *'. 'gchar' is a type defined in glib-2.0 and is trivially > typedef-ed to 'char'. > > Make sure SWIG parses this typedef otherwise it won't know what gchar is. Once it does know, you should get wrappers equally as good as if you had instead used plain char instead of gchar. William |