Skip to content

Build error with Swig > 2.04 #7

@esbullington

Description

@esbullington

Thanks for a great string retrieval package! Been using it with C++ and am setting it up to work with Python.

However, I was unable to build simstring for use with Python using Swig 2.04. My problem relates to the following issues, which were described in the Swig CHANGE doc for version 2.05:

2012-03-20: wsfulton
Fix #3487706 and #3391906 - missing stddef.h include for ptrdiff_t when using %import
for STL containers and compiling with g++-4.6. An include of stddef.h is now only
generated when SWIG generates STL helper templates which require ptrdiff_t. If you
were previously relying on "#include <stddef.h>" always being generated when using a
%include of an STL header, you may now need to add this in manually.

I was able to build simstring with Swig using the method recommended above: specifically, manually placing a "#include <stddef.h>" in the "export_wrap.cpp" file. I don't know Swig well enough to propose a patch which would generate this automatically.

Thanks again.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions