You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the following error when I run the example posted in the README.md with some header files that I'm trying to wrap.
┌ Error: error thrown. Last cursor available in context.cursor_stack.
└ @ Clang ~/.julia/packages/Clang/CiPzM/src/compat.jl:125
ERROR: LoadError: Unnamed struct member in: CLCursor (CLStructDecl) ... cursor: CLCursor (CLFieldDecl)
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] wrap!(::DefaultContext, ::CLStructDecl) at /Users/USER/.julia/packages/Clang/CiPzM/src/wrap_c.jl:159
[3] run(::WrapContext, ::Bool) at /Users/USER/.julia/packages/Clang/CiPzM/src/compat.jl:122
[4] run(::WrapContext) at /Users/USER/.julia/packages/Clang/CiPzM/src/compat.jl:89
[5] top-level scope at /Users/USER/GitRepos/TestPackage/generate.jl:17
[6] include at ./boot.jl:328 [inlined]
[7] include_relative(::Module, ::String) at ./loading.jl:1105
[8] include(::Module, ::String) at ./Base.jl:31
[9] exec_options(::Base.JLOptions) at ./client.jl:295
[10] _start() at ./client.jl:468
in expression starting at /Users/USER/GitRepos/TestPackage/generate.jl:17
The text was updated successfully, but these errors were encountered:
Looks like you got some anonymous struct members in your header file. Unfortunately, some C11 features like this one are not supported. See #233 for a workaround.
Thanks for the quick response! I have a very large set of header files, and since this failed, at the moment I'm just manually creating all the Julia structs I need. Is there a way to tell Clang.jl to skip the ones it can't parse and wrap/convert the remaining? That would get me far enough.
you can overload wrap!(ctx::AbstractContext, cursor::CLStructDecl) by copy-pasting the whole function and change this line to @warn "Unnamed struct member in: $cursor ... cursor: $field_cursor".
I'm getting the following error when I run the example posted in the README.md with some header files that I'm trying to wrap.
The text was updated successfully, but these errors were encountered: