crystal-lang / crystal_lib

Automatic binding generator for native libraries in Crystal
138 stars 30 forks source link

Does not work with Crystal 0.19.x #29

Closed jeromegn closed 8 years ago

jeromegn commented 8 years ago

First I got:

undefined constant Crystal::StructOrUnionDef (did you mean 'Crystal::CStructOrUnionDef')

and once I fixed that, I got:

in ./src/crystal_lib/type_mapper.cr:147: undefined constant Crystal::StructDef

      klass = type.kind == :struct ? Crystal::StructDef : Crystal::UnionDef

Running with:

@[Include(
  "cassandra.h"
  prefix: %w(CASS_ cass_))]
@[Link("cassandra")]
lib LibCassandra
end

Here's the header file for reference: cassandra.h

asterite commented 8 years ago

@jeromegn Thanks! I had the changes on my machine and forgot to push them after the release.

jeromegn commented 8 years ago

Thanks for the quick resolution! On Sun, Sep 11, 2016 at 5:07 PM Ary Borenszweig notifications@github.com wrote:

@jeromegn https://github.com/jeromegn Thanks! I had the changes on my machine and forgot to push them after the release.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/crystal-lang/crystal_lib/issues/29#issuecomment-246214050, or mute the thread https://github.com/notifications/unsubscribe-auth/AACpPdlkKQYjUApscyD7kEBJclsqVeUqks5qpJfLgaJpZM4J6IgM .