Any tips on tracing or debugging swig parsing? I'll try your suggestion of isolating the problem code.


On Fri, Nov 15, 2013 at 6:20 AM, Vadim Zeitlin <> wrote:
On Thu, 14 Nov 2013 17:05:23 -0600 Tim Keitt <> wrote:

TK> Sorry if this is a faq. I've not found much searching. I have a C header
TK> with lots of
TK> typedef enum { ... } enum_type;
TK> declarations, and swig is giving me a parsing error at the first line
TK> number where this occurs. Can swig handle that construct? How hard would it
TK> be to modify the swig code to handle it?

 It definitely can handle this construct, I used it many times with C
headers doing the above. There must be something else in your code which
confuses it (notice that SWIG line number reporting is not always
accurate), try reproducing the problem in a small example to find what it

 Good luck,

DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
Swig-user mailing list