Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails for typedef union #55

Closed
mlubin opened this issue Feb 14, 2014 · 4 comments
Closed

fails for typedef union #55

mlubin opened this issue Feb 14, 2014 · 4 comments

Comments

@mlubin
Copy link
Contributor

mlubin commented Feb 14, 2014

Wrap: CLCursor (TypeRef) union pthread_attr_t
ERROR: no method wrap(Array{Any,1}, IOBuffer, UnionDecl)
 in wrap at /home/mlubin/.julia/v0.3/Clang/src/wrap_c.jl:324
 in wrap_header at /home/mlubin/.julia/v0.3/Clang/src/wrap_c.jl:424
 in wrap_c_headers at /home/mlubin/.julia/v0.3/Clang/src/wrap_c.jl:487
@wkearn
Copy link

wkearn commented Mar 5, 2014

I'm getting the same error as Miles

@ihnorton
Copy link
Collaborator

ihnorton commented Mar 6, 2014

Sorry to leave this hanging... Can one of you tell me what library are you trying to wrap? Thanks.

@wkearn
Copy link

wkearn commented Mar 6, 2014

I'm trying to wrap the OGR (http://gdal.org/ogr/index.html) component of the GDAL library. ogr_core.h (http://gdal.org/ogr/ogr__core_8h.html) is the header which Clang fails on.

@ihnorton
Copy link
Collaborator

I got good results using the following script:

using Clang.wrap_c
context = wrap_c.init(; output_file="libogr.jl",
                 header_library=x->"ogr",
                 header_wrapped=(tophdr,cuhdr)-> contains(cuhdr, "ogr"),
                 common_file="libogr_h.jl", clang_diagnostics=true,
                 clang_args=["-v"], clang_includes=["/cmn/julia/usr/bin/", "/usr/include/mysql",    
                                                                        "/cmn/julia/deps/llvm-3.3/tools/clang/lib/Headers"])
context.options.wrap_structs = true
wrap_c.wrap_c_headers(context, ["/usr/include/gdal/ogr_core.h"])

melonedo pushed a commit to melonedo/Clang.jl that referenced this issue Jul 20, 2021
* Update to LibCURLBuilder 0.3.1

* Enable 32-bit on Appveyor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants